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

What needs to be changed for Rails 4? #4

Open
davidlfox opened this issue Mar 2, 2014 · 0 comments
Open

What needs to be changed for Rails 4? #4

davidlfox opened this issue Mar 2, 2014 · 0 comments

Comments

@davidlfox
Copy link

The feedback modal renders correctly if I manually make do: input type="text" name="email" /> but <%= f.text_field 'email' %> raises the error below. Is this a Rails 4 limitation? I think I found the documentation for the FormBuilder.text_field method, but maybe I'm not reading it right and something needs to change...

ActionView::Template::Error (undefined method '[]' for nil:NilClass):

17:     <%= f.label 'email' %>
18:     <%= f.text_field 'email' %>
19:     <!--<input type="text" name="email" />-->

app/views/feedbacks/new.html.erb:18:in 'block in _app_views_feedbacks_new_html_erb___3943314167409289596_2190560080'
app/views/feedbacks/new.html.erb:5:in `_app_views_feedbacks_new_html_erb___3943314167409289596_2190560080'

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