Skip to content

Instantly share code, notes, and snippets.

@schadenfred
Created July 19, 2011 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schadenfred/1091484 to your computer and use it in GitHub Desktop.
Save schadenfred/1091484 to your computer and use it in GitHub Desktop.
'devise_for :users, :controllers => {:registrations => "registrations"}
Sadly, it still doesn't work with this registration controller code:
def create
if params[:user] && !params[:user][:password] && !params[:user][:name]
params[:user][:password] = "Some password"
params[:user][:password_confirmation] = "Some password"
params[:user][:name] = "Some name"
super
else
super
end
end
def update
super
end
end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment