To all:
Hi,
i think i realise what i went wrong here at
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/47c3b56034adf347/265b30d3cd97e137?lnk=gst&q=restful_authentication+nested#
I think its all due to the problem of me using restful authentication
and override to_param method with a
# overriding to_param method to use permalink instead of id
def to_param
self.permalink
end
inside my User model (user.rb)
to make my urls look like localhost:3000/users/peter_login/orders
rather than localhost:3000/users/2/orders
How do i reconcile getting more meaningful urls with restful
authentication?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---