Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form_for fails on Spree with "undefined method `human_attribute_name' for NilClass:Class" for any field #33

Closed
rterbush opened this issue Jun 4, 2013 · 1 comment

Comments

@rterbush
Copy link

rterbush commented Jun 4, 2013

Trying to use your helpers on Spree. Finding that it works great on some forms, but on following login form, it fails with the above error. The form works fine if I use form_for_without_foundation.

<%= form_for(:spree_user, :url => spree.spree_user_session_path) do |f| %>
  <div id="password-credentials">
    <p>
      <%= f.email_field :email %>
    </p>
    <p>
      <%= f.password_field :password, :class => 'title', :tabindex => 2 %>
    </p>
  </div>
  <p>
    <label>
      <%= f.check_box :remember_me %>
    </label>
  </p>

  <p><%= f.submit Spree.t(:login), :class => 'tiny round button', :tabindex => 3 %></p>
<% end %>
@rterbush
Copy link
Author

rterbush commented Jun 4, 2013

This appears to be an issue in spree_auth_devise that I will provide a PR for.

@rterbush rterbush closed this as completed Jun 4, 2013
Digital-Learner added a commit to Digital-Learner/support-tastic that referenced this issue Sep 15, 2014
 
- had to use ‘form_for_without_foundation’ in the form_for
- otherwise get ‘undefined method `human_attribute_name' for NilClass:Class’
- is it same as issue ( sgruhier/foundation_rails_helper#33 )?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant