Thanks Tim!  That did the trick!

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Tim Shaffer
Sent: Friday, September 16, 2011 2:38 PM
To: [email protected]
Subject: Re: [Rails] Help with default resource routes using id arguments

 

If you want to redirect to a specific user_profile, you probably want to use
the singular helper:

 

user_profile_path(4)

 

The singular path accepts 2 arguments: id and format

 

The plural helper (user_profiles_path) is for the "index" action and only
accepts 1 argument: format

 

Run rake:routes to take a look at the available URLs and their helpers.

-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/830A3OTCjm8J.
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.

Reply via email to