Hello,

I've got a form override setup in my helper file for my model called
ContactInformation. In this model there is a reference to a state_id,
which is a reference to the model State. Here is the form override:

  def state_id_form_column(record, input_name)
    collection_select(:record, :state_id, State.find(:all, :order =>
"name"), :id, :name)
  end

This works fine when I call up ContactInformation directly via its own
controller. But when it gets called as part of a subform, the form
override is not used. Thus instead of seeing a drop-down box with a
list of states, I just see an empty text box.

Any ideas why form overrides wouldn't work when called as part of a
subform?

Thanks!

Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • Fo... RogueBusinessServices
    • ... G. Sobrinho
      • ... RogueBusinessServices
        • ... RogueBusinessServices
          • ... RogueBusinessServices
            • ... RogueBusinessServices
              • ... yairgo
                • ... RogueBusinessServices
                • ... RogueBusinessServices
            • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to