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
A standalone, simple form works fine on its own. However, embedding this within an existing page (through clicking on the '+' sign -> Reuse Content -> Choose 'Form' -> Select form and add to page. Error appears in preview: "ERROR: undefined method `content_for' for nil:NilClass"
Stack trace shows:
content_for(html_head, , block) called.
CACHE (0.0ms) SELECT cms_dynamic_views.* FROM cms_dynamic_views WHERE cms_dynamic_views.path = 'cms/forms/render' AND cms_dynamic_views.locale = 'en' AND cms_dynamic_views.format = 'html' AND cms_dynamic_views.handler IN ('erb', 'builder', 'raw', 'ruby', 'jbuilder', 'coffee') AND cms_dynamic_views.partial = 0
Rendered cms/forms/render.html.erb (4.4ms)
Error occurred while rendering Cms::Form#4: undefined method content_for' for nil:NilClass /Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/browsercms-4.0.0.beta/app/models/cms/view_context.rb:43:incontent_for'
/Users/jason_holloway/Dropbox/Dev/quicktest/beta/app/views/cms/forms/render.html.erb:1:in _app_views_cms_forms_render_html_erb___329539016520353584_70290998819760' /Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.0.8/lib/action_view/template.rb:143:inblock in render'
/Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.8/lib/active_support/notifications.rb:161:in instrument' /Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.0.8/lib/action_view/template.rb:141:inrender'
[....]
The text was updated successfully, but these errors were encountered:
Using v4.0.0.beta, standard install.
A standalone, simple form works fine on its own. However, embedding this within an existing page (through clicking on the '+' sign -> Reuse Content -> Choose 'Form' -> Select form and add to page. Error appears in preview: "ERROR: undefined method `content_for' for nil:NilClass"
Stack trace shows:
content_for(html_head, , block) called.
CACHE (0.0ms) SELECT
cms_dynamic_views
.* FROMcms_dynamic_views
WHEREcms_dynamic_views
.path
= 'cms/forms/render' ANDcms_dynamic_views
.locale
= 'en' ANDcms_dynamic_views
.format
= 'html' ANDcms_dynamic_views
.handler
IN ('erb', 'builder', 'raw', 'ruby', 'jbuilder', 'coffee') ANDcms_dynamic_views
.partial
= 0Rendered cms/forms/render.html.erb (4.4ms)
Error occurred while rendering Cms::Form#4: undefined method
content_for' for nil:NilClass /Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/browsercms-4.0.0.beta/app/models/cms/view_context.rb:43:in
content_for'/Users/jason_holloway/Dropbox/Dev/quicktest/beta/app/views/cms/forms/render.html.erb:1:in
_app_views_cms_forms_render_html_erb___329539016520353584_70290998819760' /Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.0.8/lib/action_view/template.rb:143:in
block in render'/Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.8/lib/active_support/notifications.rb:161:in
instrument' /Users/jason_holloway/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.0.8/lib/action_view/template.rb:141:in
render'[....]
The text was updated successfully, but these errors were encountered: