Phil

On Wed, Mar 30, 2011 at 10:45 AM, John Merlino <li...@ruby-forum.com> wrote:

> 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
>

run 'rake routes' on the command line to see the routes that were created.


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

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to