nested-routes
Yet another routing error in Rails3.1 when I tried to nest the resource
This is my error: No route matches {:controller=>\"accounts\", :format=>nil} and this is the url:[详细]
2023-04-08 13:49 分类:问答rails rspec controller test ActionController::RoutingError
My routes looks like this resources :stores, :except => [:destroy] do resources :toys, :member => {:destroy => :delete}[详细]
2023-04-07 00:37 分类:问答Rails 3: named parameter routes break link_to
I\'m trying to create a Rails app that divides the users by groups and sub-groups and offers a customized site to each sub-group. I figured the easiest way to do that was to create scope with named pa[详细]
2023-03-26 10:20 分类:问答Rails nested routes not filtering
I have two models: Product and ProductType: Product: class Product < ActiveRecord::Base default_scope :order => \'name\'[详细]
2023-03-24 21:03 分类:问答Rails 3 Nested Resources Edit/Update method - routing error
I need some help with nested resource actions. I have three nested resources: Jobs, Questions and Answers. I am currently only trying to get the edit/update method to work for the questions controller[详细]
2023-03-20 02:01 分类:问答Ruby on Rails - Custom routing for review resource with index / show page and pagination
I\'m stuck on a very tricky issue involving Rails 3 routes, and not good enough with routes to figure this one out on my own. I have a \"Reviews\" resource with only a \"Show\" and \"Index\" action. I[详细]
2023-03-15 08:04 分类:问答Rails 3 - Nested Routes "NoMethodError" despite being listed in rake routes
Ok guys so I have a nested route like this: resources :apps do resources :forms end In my form index I have this block:[详细]
2023-03-07 15:47 分类:问答Building nested routes for a resource that use acts_as_tree
do you know how to generate dynamically routes such as: ... (/:parent_id(/:parent_id(/:parent_id(/:parent_id))))/:id[详细]
2023-03-05 11:15 分类:问答Rails 3 routing with resources under an optional scope
I have setup my versioned API like this with only a small tweak for backwards compatibility. In my routes I have:[详细]
2023-03-03 06:49 分类:问答How to define a controller function that works for instances of any model
Implementing versioning for a Rails app I\'d like to have a view that开发者_C百科 displays all versions of a model with some extra functionality like reverting etc.[详细]
2023-02-27 16:53 分类:问答