Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

undefined method `column_for_attribute' #72

hugop92 opened this Issue Nov 19, 2009 · 1 comment


None yet
2 participants

hugop92 commented Nov 19, 2009

Hi, I implemented the tutorial, with 'username' as the login field.
The column in the Users table is named 'username', and in user.rb I added:
acts_as_authentic do |c|
c.login_field = :username

and got this weird exception:

NoMethodError in User_sessions#new

Showing app/views/user_sessions/new.html.erb where line #33 raised:

undefined method `column_for_attribute' for #<UserSession: no credentials provided>

Extracted source (around line #33):

30: <%= f.label t('user.username') %> :
33: <%= f.text_field :username %>


RAILS_ROOT: /disk1/home/slugs/34794_f1a214e_a88e/mnt
Application Trace | Framework Trace | Full Trace

/disk1/home/slugs/34794_f1a214e_a88e/mnt/vendor/plugins/delocalize/lib/delocalize/rails_ext/action_view.rb:11:in to_input_field_tag' /disk1/home/slugs/34794_f1a214e_a88e/mnt/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:531:intext_field'

/disk1/home/slugs/34794_f1a214e_a88e/mnt/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:930:in send' /disk1/home/slugs/34794_f1a214e_a88e/mnt/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:930:intext_field'

/disk1/home/slugs/34794_f1a214e_a88e/mnt/app/views/user_sessions/new.html.erb:33:in _run_erb_app47views47user_sessions47new46html46erb' /disk1/home/slugs/34794_f1a214e_a88e/mnt/app/views/user_sessions/new.html.erb:26:in_run_erb_app47views47user_sessions47new46html46erb'

This only appends in production, it works well in development.

hugop92 commented Nov 20, 2009

It was a plugin that was present in prod ('delocalize') and not in dev.
The app being deployed on Heroku, there is no visible file system.
To remove it fully, remove it from the local git:
git rm -r vendor/plugins/delocalize
Then redeploy on Heroku.

@tiegz tiegz closed this Oct 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment