search for: utility_provider

Displaying 1 result from an estimated 1 matches for "utility_provider".

Did you mean: utility_providers
2011 Apr 22
0
how to set up fields_for to choose a subclass?
...es to choose a UtilityProvider, I want to present a pull-down list of UtilityProvider.subclasses (or, more likely, a filtered version of that), and when the user hits [submit] to create the appropriate subclass. To add a little spice to the question, I have a Premise model, and premise has_many :utility_providers and I''m using nested routes to represent the relationship: resources :premises do resources :utility_providers end So at the point in my code where I invite the user to create a new UtilityProvider, I *do* have a @premise, but I don''t have a @utility_provider. I think...