map.resources :users, :member => { :welcome => :get }
On Dec 31, 4:23 am, Kei Simone
<kimc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> To all:
>
> Hi,
>
> I am unfamiliar with rails and restful design, please guide me.
>
> let''s say I generated a scaffold_resource for the model User
>
> so now when I click on users/show/1 i get details of the User model,
> etc.. the standard show, index, destroy methods are working.
>
> However let say i need to have a users/1/welcome
>
> which will display some info about the user of id 1 but its a
> different page layout as that with show.rhtml.
>
> How can i make this to be restful ? I can have a welcome method inside
> the user controller and a welcome.rhtml, however when i run rake
> routes > routes.txt i see that my welcome methods are not using the
> verbs GET or POST.
>
> Please advise.
>
> Thank you.
>
> Regards
> Kim Sia
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---