You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to use Cells with a Rails 6 application, and failed when trying to generate a (non-model-based) form. Even though I included ActionView::Helpers::FormHelper into the cell, form_with (and form_tag) always failed with NoMethodError: undefined method `[]' for nil:NilClass. Any ideas as to how to get this to work?
The text was updated successfully, but these errors were encountered:
I think I figured out the issue. I used new instead of the cell helper method to render the cell, so cells-rails didn't get a chance to set up the context properly. Once I used the cell helper, everything worked. Leaving this open only because it might be worth documenting this gotcha.
I just tried to use Cells with a Rails 6 application, and failed when trying to generate a (non-model-based) form. Even though I included ActionView::Helpers::FormHelper into the cell,
form_with
(andform_tag
) always failed withNoMethodError: undefined method `[]' for nil:NilClass
. Any ideas as to how to get this to work?The text was updated successfully, but these errors were encountered: