ruby on rails - Why is the semantic_nested_form_for method missing in my production environment? -



ruby on rails - Why is the semantic_nested_form_for method missing in my production environment? -

i'm trying switch site utilize nested_form gem in combination formtastic, i'm using, i'm getting unusual error. works fine in development, , tests pass. error occurs in production.

visiting page semantic_nested_form_for used causes next error:

actionview::template::error (undefined method `semantic_nested_form_for' #<#<class:0x0000000524cca0>:0x00000004e46a70>): 1: <%= semantic_nested_form_for(@volume) |f| %> 2: <%= f.inputs %> 3: <%= f.input :number, :label => 'volume #', :input_html => {:style => 'width:100px;', :autofocus => true}, :hint => raw('choose volume number.') %> 4: <% end %> app/views/volumes/_form.html.erb:1:in `_app_views_volumes__form_html_erb__2632693694855646779_43838320' app/views/volumes/new.html.erb:3:in `_app_views_volumes_new_html_erb___2327298489284463705_41053660'

the gem in gemfile , seems installed correctly:

[~/application/current]$ bundle show nested_form /home/deployer/application/shared/bundle/ruby/1.9.1/gems/nested_form-0.3.1

i can phone call semantic_nested_form_for in production console:

[~/application/current]$ rails c production loading production environment (rails 3.2.12) irb(main):001:0> helper.semantic_nested_form_for(volume.new, url: '/volumes' |f| irb(main):002:2* f.inputs irb(main):003:2> f.actions irb(main):004:2> end irb(main):005:1>

additionally, semantic_form_for works fine itself, nested_form_for (without semantic_ part) not work, leading me think related straight nested_form.

i don't think erb code relevant issue, here anyway:

<%= semantic_nested_form_for(@volume) |f| %> <%= f.inputs %> <%= f.input :number, label: 'volume #', input_html: {autofocus: true}, hint: 'choose volume number.' %> <% end %> <div id="issues_fields"> <%= f.semantic_fields_for :issues %> <%= f.link_to_add 'add issue', :issues %> </div> <%= f.actions %> <%= f.action :submit, label: 'save' %> <% end %> <% end %>

well i'm little dumbfounded. capistrano restarts unicorn when deploy, , before asked question had tried manually restarting nginx , unicorn rule out. after asked question rebooted entire production server (which hate doing) see, , it's working fine.

if can tell me reason why rebooting unicorn process wasn't enough, i'll mark reply accepted answer.

ruby-on-rails nested-form-for

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -