hello,
i have a problem with a belongs_to association
Malformed constraint `User#ad'. If it's a legitimate column, and you
are using a nested scaffold, please specify or double-check the
reverse association name.
active_scaffold :ad do |config|
config.nested.add_link("user", [:user])
end
model Ad
belongs_to :user
model user
has_many :ads
i try this
config.columns[:user].association.reverse = :ad
but it does not work
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---