class EnrollmentApplication < ActiveRecord::Base
   has_many :application_steps
   belongs_to :registrar

   def to_label
      registrar.name
   end
end


class Registrar < ActiveRecord::Base
  has_one :enrollment_application
  has_many :registrar_reseller_leads
  belongs_to :user
  has_and_belongs_to_many :marketing_programs
  has_one :registrar_data_form
  has_one :registry_registrar_agreement
end


On Mar 18, 5:10 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Miércoles, 17 de Marzo de 2010 22:51:40 joelkeepup escribió:
>
>
>
> > Hi, im getting this error:
>
> > ActiveScaffold::MalformedConstraint in Admin
> > registrarsController#table
> > Malformed constraint `Registrar#application_step'. If it's a
> > legitimate column, and you are using a nested scaffold, please specify
> > or double-check the reverse association name.
>
> > when I drill down, here is my object model
> > Applications -> ApplicationSteps -> tasks -> Error happens when trying
> > to show tasks
>
> > Applications belong_to Registrars.
>
> > This all worked until I moved my controllers to have prefix of "Admin"
>
> > I have no idea why when showing the tasks its getting this error.
>
> > Registrars have no relation to application_step except through
> > applications
>
> > Im sure I have a typo somewhere, but dont know how to debug this, any
> > suggestions?
>
> Post your Applications and Registrars models.
> Do you have a has_one or has_many association in Registrars model?
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
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.

Reply via email to