Forum: Ruby on Rails To get more understanding of REST

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sijo k. (Guest)
on 2009-01-09 09:01
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
Ryan B. (Guest)
on 2009-01-09 09:20
(Received via mailing list)
http://guides.rubyonrails.org has a routing guide which is pretty
comprehensive.
-----
Ryan B.
Freelancer
http://frozenplague.net
This topic is locked and can not be replied to.