Displaying 1 result from an estimated 1 matches for "individual_user_pag".
Did you mean:
individual_user_page
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 => "user_page"
end
Right now, the url is in this format: "url.com/Bob+Doe"...