Reputation: 2272
I've set up Cells (link to github) self contained cell. Nothing special. And everything works except one thing.
When a view template inside the cell has a simple_form_for
helper - it doesn't work.
Says
undefined method `simple_form_for' for #<SubscribeForm::Cell:0x0000000a0ceba8>
Don't understand why. Any ideas? Other helpers (link_to
, etc) work fine. And simple_form_for
does work on other pages where there are no cells. Oh, and it's not about "restarting the server". Thanks for any advice.
Upvotes: 3
Views: 650
Reputation: 2272
Resolved by doing
load('action_view/helpers/form_helper.rb')
include ActionView::Helpers::FormHelper
include SimpleForm::ActionViewExtensions::FormHelper
Upvotes: 5