http://guides.rubyonrails.org has a routing guide which is pretty
comprehensive.
-----
Ryan Bigg
Freelancer
http://frozenplague.net
On 09/01/2009, at 5:31 PM, Sijo Kg wrote:
>
> Hi
> Could any body please explain the difference below
>
> map.resources :people
> map.resource :book # or books
>
> Also I would like to know why to specify member like
> map.resources :templates,
> :member => { :attach_file_js => :post,
> :delete_file => :delete,
> :update_pictures => :get,
> },
> :collection => { :search => :post }
>
> map.with_options :controller => ''search'',
> :path_prefix => ''search'',
> :name_prefix => ''search_'' do |advanced_search|
> search.save_query ''save'', :action =>
''save''
> search.show_query ''show/:query_id'', :action =>
''show''
> end
>
> I did not understand any of this..Please suggest any links or
> books to get proper understanding of all these
>
> Thanks in advance
> Sijo
> --
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---