I am trying to change the rails routes from /users/1 to /username. I currently set this up so it works for the actions of showing and editing. The actual issue is that when
You don't have to override to_param if you don't want to, you can just specify in the form tag like this:
to_param
<%= form_for @user, :url => user_path(:id => @user.username) do |f|%>