Hey there
I’m creating this app on top of a legacy database, that has a mixture
of auto_inc ids, non-‘id’ named pks, non-integer-pks, foreign keys that
end in _code instead of _id, etc.
I have the model working great in the console, where I can create any
modeled object and reference other objects without issues.
However, I’m running into problems with plugins such as GLoc and
Scaffold Extension, seemingly because of some attribute names.
Scaffolding works without the plugins, but once they’re installed, I
get errors like this which is from the Scaffolding Extension:
ArgumentError in Admin/crud#edit
Showing vendor/plugins/scaffolding_extensions/scaffolds/edit.rhtml
where line #3 raised:
wrong number of arguments (0 for 1)
Extracted source (around line #3):
1:
Editing <%= @scaffold_singular_name.humanize.downcase %>
2:
3: <%= scaffold_form(‘update’,
:fields=>@scaffold_class.scaffold_edit_fields) %>
4:
5: <%= association_links %>
6:
RAILS_ROOT: /home/daniel/Documents/Projects/Eclipse/polybook/config/…
Thing is, this is great info: so, there’s a wrong number of arguments,
great! But for which method, and what kind of argument did it expect?
What was happening at the time, stuff like that. I can’t guess (not in
proper time anyway) which attribute(s) caused this error, so how do I
find out? If I knew how to use the Ruby/Rails debugger, I guess that
would be great, except it supposedly doesn’t work with Ruby 1.8.5.
Help please!
Thanks,
Daniel