This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegistrationsController < Devise::RegistrationsController | |
def new | |
super | |
end | |
def create | |
@user = User.new(params[:user]) | |
if @user.name.blank? | |
params[:user][:name] = temporary_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ted GET "/assets/application.css" for 127.0.0.1 at 2011-07-18 17:57:44 -0700 | |
Served asset /application.css - 304 Not Modified (0ms) (pid 2954) | |
Started POST "/users" for 127.0.0.1 at 2011-07-18 17:58:34 -0700 | |
Processing by Devise::RegistrationsController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"QzKJHlAtt31RixixWixQWr2OPmeEVRD9odGxSs7znS8=", "user"=>{"name"=>"", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} | |
(0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1 | |
(0.2ms) SELECT 1 FROM "users" WHERE LOWER("users"."name") = LOWER('') LIMIT 1 | |
(0.1ms) SELECT 1 FROM "users" WHERE LOWER("users"."email") = LOWER('[email protected]') LIMIT 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ted GET "/assets/application.css" for 127.0.0.1 at 2011-07-18 17:57:44 -0700 | |
Served asset /application.css - 304 Not Modified (0ms) (pid 2954) | |
Started POST "/users" for 127.0.0.1 at 2011-07-18 17:58:34 -0700 | |
Processing by Devise::RegistrationsController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"QzKJHlAtt31RixixWixQWr2OPmeEVRD9odGxSs7znS8=", "user"=>{"name"=>"", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} | |
(0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1 | |
(0.2ms) SELECT 1 FROM "users" WHERE LOWER("users"."name") = LOWER('') LIMIT 1 | |
(0.1ms) SELECT 1 FROM "users" WHERE LOWER("users"."email") = LOWER('[email protected]') LIMIT 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.bashrc | |
if [[ -s /home/frederick/.rvm/scripts/rvm ]] ; then source /home/frederick/.rvm/scripts/rvm ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
if [[ ! -z "$PS1" ]] ; then | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# don't overwrite GNU Midnight Commander's setting of `ignorespace'. | |
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups |