Override to_param + restful_authentication

To all:


i think i realise what i went wrong here at

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

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

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs