although this question sound noob.. but i really need to know this. What is in controller and routes to make the url like i want??
any reference?? thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you really want to do is to redefine your to_params to return :name instead of :id.
http://apidock.com/rails/v3.0.0/ActiveRecord/Base/to_param
That should do it.