Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

error using latest ActiveScaffold and RecordSelect #2

Open
tripodrob opened this issue Oct 26, 2009 · 3 comments
Open

error using latest ActiveScaffold and RecordSelect #2

tripodrob opened this issue Oct 26, 2009 · 3 comments

Comments

@tripodrob
Copy link

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: <%= column.label %>
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

@jaycode
Copy link

jaycode commented Nov 13, 2009

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

@tom2cjp
Copy link

tom2cjp commented Nov 22, 2009

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

renderer = controller.record_select_config.label

@jaycode
Copy link

jaycode commented Nov 22, 2009

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants