I've just installed Sergio's fork of RecordSelect as a plugin of my
app. For example: I have two models: ChargeCard >---- Discipline.

In my ChargeCardsController:

active_scaffold do |config|
  ...
  config.columns[:discipline].form_ui = :record_select
  ...
end

If I try to open create/update form this error appears:

ActionView::TemplateError (DeptHead::DisciplinesController has not
been configured to use RecordSelect.) 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 -%>

    vendor/plugins/recordselect/app/helpers/record_select_helper.rb:183:in
`assert_controller_responds'
    vendor/plugins/recordselect/app/helpers/record_select_helper.rb:47:in
`record_select_field'
    
vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.html.erb:7
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
    vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:13
    vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:2
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
    
vendor/plugins/active_scaffold/frontends/default/views/_create_form.html.erb:40
    haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
    warden (0.10.7) lib/warden/manager.rb:35:in `call'
    warden (0.10.7) lib/warden/manager.rb:35:in `call'
    warden (0.10.7) lib/warden/manager.rb:34:in `catch'
    warden (0.10.7) lib/warden/manager.rb:34:in `call'
    haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
    pdfkit (0.4.6) lib/pdfkit/middleware.rb:14:in `call'

Rendered rescues/_trace (386.2ms)
Rendered rescues/_request_and_response (1.2ms)
Rendering rescues/layout (internal_server_error)


So how should I configure Disciplines controller?

-- 
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.

Reply via email to