Displaying 1 result from an estimated 1 matches for "user_full_nam".
Did you mean:
user_full_name
2007 Jul 19
2
Transform URLs from: "url.com/Bob+Doe" to "url.com/bob_doe"
Is that possible, and would you know how I can do that?
I''m creating individual pages for users based on their first and last
names.
In my routes.rb, I have:
map.client '':user_full_name'', :controller => ''user'', :action =>
''individual_user_page''
Then in my controller, I have:
def individual_user_page
@user = User.find(:first, :conditions => [''first_name = ?'',
params[:user_full_name]])
render :layout...