Hi, Please check if active_scaffold_config.columns [:quantity] is nil
-- Volker On 2 Dez., 07:12, Victor <[email protected]> wrote: > I'm trying to override a subform field but am running into > difficulties. > > This is where I am: > > in purchases_helper.rb: > > def quantity_form_column(record, input_name) > text_field :record, :quantity, :name => input_name, :id => > active_scaffold_input_options(active_scaffold_config.columns > [:quantity])[:id], :size => 10, :class => 'text-input' > end > > This is the error I'm getting: > ActionView::TemplateError (You have a nil object when you didn't > expect it! > The error occurred while evaluating nil.name) on line #7 of vendor/ > plugins/active_scaffold/frontends/default/views/ > _form_attribute.html.erb: > 4: <label for="<%= active_scaffold_input_options(column, scope) > [:id] %>"><%= column.label %></label> > 5: </dt> > 6: <dd> > 7: <%= active_scaffold_input_for column, scope %> > 8: <% if column.options.is_a?(Hash) && column.options > [:update_column] -%> > 9: <%= loading_indicator_tag(:action => :render_field, :id => > params[:id]) %> > 10: <% end -%> -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
