Actually I don''t know why that happens, but if you do:
resources :photos do
get ''view, :on => :member
end
It behaves as expected.
On Aug 16, 2012, at 1:59 AM, fedesoria wrote:
> Hi,
>
> I found a little confusing how this works, let me know if there''s
a reasoning for this:
>
> In theory all routes paths follow this structure resource_action_path and
this works great except for the following action:
>
> resources :photos do
> get ''view''
> end
> which results in photo_view_path having the action at the end instead of
the beginning.
>
> Is this correct?
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-core/-/aeTHk98ctgQJ.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.
Cumprimentos,
Luís Ferreira
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.