Gem Cells does not work well with Simpleform

I have set cells ( github link ) to contain cell myself. Nothing special. And everything works except one.

When a view template inside a cell has a helper simple_form_for

, it doesn't work. Is talking

undefined method `simple_form_for' for #<SubscribeForm::Cell:0x0000000a0ceba8>


Do not understand why. Any ideas? Other helpers ( link_to

etc.) are working fine. And simple_form_for

works on other pages where there are no cells. Oh, and this is not about "rebooting the server". Thanks for any advice.


source to share

1 answer

Decided to do

include ActionView::Helpers::FormHelper
include SimpleForm::ActionViewExtensions::FormHelper




All Articles