Anyone have any ideas? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ERB Sent: Thursday, September 15, 2011 4:39 PM To: Ruby on Rails: Talk Subject: [Rails] Help with default resource routes using id arguments
I am a new to rails so this is probably a basic question. I have a resource route as such: resources :user_profiles In one of my controllers, I have the following: redirect_to user_profiles_path(4) This redirects to the "show" action in the "user_profiles" controller, but the url structure is: http:/mydomain/user_profiles.4 Why is the url .4 and not /4? Any help would be appreciated! -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

