Cannot create user
Closed
Cannot create user
Created by: ProgVal
Hi,
I get this when trying to create a user:
Started POST "/admin/users" for 192.168.100.5 at 2012-06-10 17:19:37 +0000
Processing by Admin::UsersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+H+W0AkIV6LNsRznawCsesgTFQ454lafP8TYOWBYaZ4=", "user"=>{"name"=>"guest", "email"=>"guest@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "skype"=>"", "linkedin"=>"", "twitter"=>"", "projects_limit"=>"10", "admin"=>"0"}, "commit"=>"Save"}
Completed 500 Internal Server Error in 4ms
NoMethodError (undefined method `bio' for #<User:0x0000000670a098>):
app/controllers/admin/users_controller.rb:70:in `block in create'
app/controllers/admin/users_controller.rb:69:in `create'
Regards, Valentin
Created by: ProgVal
gitlab@Hydrogen:~/gitlab$ bundle exec rails s RAILS_ENV=production Exiting /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require': no such file to load -- rack/handler/rails__env=production (LoadError) from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `block in require' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:63:in `try_require' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:16:in `get' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands/server.rb:59:in `start' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:55:in `block in <top (required)>' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:50:in `tap' from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:50:in `<top (required)>' from script/rails:6:in `require
By Administrator on 2012-06-10T19:01:16 (imported from GitLab project)
Created by: ProgVal
When I run
bundle exec rake db:migrate RAILS_ENV=production
, the file db/schema.rb is modified:gitlab@Hydrogen:~/gitlab$ git diff db/schema.rb gitlab@Hydrogen:~/gitlab$ bundle exec rake db:migrate RAILS_ENV=production gitlab@Hydrogen:~/gitlab$ git diff db/schema.rb diff --git a/db/schema.rb b/db/schema.rb index 59098d7..54f15ff 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -36,7 +36,6 @@ ActiveRecord::Schema.define(:version => 20120413135904) do t.integer "position", :default => 0 t.boolean "critical", :default => false, :null => false t.string "branch_name" - t.text "description" t.integer "milestone_id" end @@ -168,7 +167,6 @@ ActiveRecord::Schema.define(:version => 20120413135904) do t.string "authentication_token" t.boolean "dark_scheme", :default => false, :null => false t.integer "theme_id", :default => 1, :null => false - t.string "bio" t.boolean "blocked", :default => false, :null => false end
By Administrator on 2012-06-23T07:59:14 (imported from GitLab project)
Please register or sign in to reply