Sur Max wrote:
> IMHO, you really need to study the routes and how restful routing
> works. http://guides.rubyonrails.org/routing.html
> Scaffolding must have had generated the restful routing for the said
> controller and thus no other method except CRUD is being entertained
> unless specified.
>
> add your method in the file config/routes.rb like this...
>
> Say your controller is posts
>
> map.resources :posts, :collection => {:abc_whatever => :any}
Ok thanks a lot for your info. I'll read them.
>
>
> regards,
> Sur
> http://crimson9.com
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment