Skip to content

What needs to be changed for Rails 4? #4

@davidlfox

Description

@davidlfox

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions