Welcome Guest | Login

active scaffold subform menus

hi,

in my app doesn't works the links in subforms. (nested links, edit, show)
Request Failed (code 500, Internal Error)

ActionView::TemplateError (Expected /home/tengerr/apps/rest5/app/models/image.rb to define Image) on line #24 of vendor/plugins/active_scaffold/frontends/default/views/_nested.rhtml:
21:           }
22:         }
23:       else
24:         @constraints = { association.reverse => parent_id }
25:       end
26:
27:       # generate the customized label

using mongrel in local machine and fastcgi in hostingrails.

2008-03-17 09:41 AM

Hi there - fire up your script/console and issue a
>>Image

that should give you a more informative error about what is causing the problem so you can get this fixed. You can paste it in here if you're not sure what to do with it and we'll help out.

2008-03-17 10:27 AM

hi,

the problem is not the image module.
ex:
user - role - permission models
i can create permission in perm screen, but if i want to add permission to role, or create new in role/permission subform i get error like prev error, when i tried to add image to food.

so in first screen works everything, but same model in other screen (active scaffold nested link) fails

2008-03-17 11:02 AM

Based on the error - it would still be helpful to see what script/console gives you both for the Model and for the action that calls it.

2008-03-17 12:42 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.