Hey all,

I find this in ruby guide:

resources :photos do
  collection do
    get 'search'
  end
end
It will also create the search_photos_url and search_photos_path route
helpers.

So I try to implement:

#routes
  resources :core do
    collection do
      get 'coreim'
      get 'corer'
    end
  end

#index.html.haml
= link_to 'core', coreim_core_path

I get undefined method coreim_core_path

Thanks for response

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to