recordselect icon indicating copy to clipboard operation
recordselect copied to clipboard

error using latest ActiveScaffold and RecordSelect

Open tripodrob opened this issue 16 years ago • 3 comments
trafficstars

Hi, I've been using AS and RecordSelect for sometime, but for a new project that I've started I'm getting an error. I've setup everything as usual, but when trying to edit an item that has an existing related object I get the following error:

ActionView::TemplateError (undefined method `record_select_config' for #RelArtObjectToIFCsController:0x22e1b64) on line #7 of vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.html.erb: 4: 5: 6:

7: <%= active_scaffold_input_for column, scope %> 8: <% if column.description -%> 9: <%= column.description %> 10: <% end -%>

If there is no previous related object it works as expected.

I'm using RoR 2.3.4, the latest AS, and a fresh install from github of RecordSelect.

Any ideas?

Thanks, Robbie

tripodrob avatar Oct 26 '09 19:10 tripodrob

I'm also having this problem, wondering if anyone could respond to this please? thanks

jaycode avatar Nov 13 '09 17:11 jaycode

may be the problem in : def record_select_config controller.send :record_select_config end

renderer = controller.record_select_config.label

tom2cjp avatar Nov 22 '09 11:11 tom2cjp

Thank you for your reply. I finally wrote my own autocomplete input and didn't use recordselect. Great if anyone could try this solution.

jaycode avatar Nov 22 '09 17:11 jaycode