[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Greg Hauptmann
thanks - got the auto-creation of nested models working! Now I seem to be on the next challenge of getting decent validation error messages show on the view with the nested models :) Seems to be somewhat discussed at http://railscasts.com/episodes/75-complex-forms-part-3 but doesn't seem to hav

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Frederick Cheung
Sent from my iPhone On 23 Nov 2008, at 12:38, "Greg Hauptmann" <[EMAIL PROTECTED] > wrote: > > oh, got it Frederick, > > To be more self sufficient, how would I be able to confirm for myself > exactly what the Rails controller framework is looking for when it's > trying to create models out

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Greg Hauptmann
oh, got it Frederick, To be more self sufficient, how would I be able to confirm for myself exactly what the Rails controller framework is looking for when it's trying to create models out of the param's it gets (i.e. behind the scenes before it gets to your code)? If I had a way of confirming t

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Frederick Cheung
On Nov 23, 7:21 am, "Greg Hauptmann" <[EMAIL PROTECTED]> wrote: > PS.  Actually I've just seen in this RailsCasts episode that Ryan > seems to have a nested model controller that does translate the parent > & child model data from the form to parent model and its association > (child model).  Am

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-22 Thread Greg Hauptmann
PS. Actually I've just seen in this RailsCasts episode that Ryan seems to have a nested model controller that does translate the parent & child model data from the form to parent model and its association (child model). Am I missing something Frederick re whether you may have been wrong here?

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-22 Thread Greg Hauptmann
thanks for responding Frederick: So just to clarify you mean: (a) I would have to do this in my controller in the "save" method right? (b) so anyone that anyone using Rails that has nested models in their views do have to do this too then? i.e. extract work in the controller? i.e. there's no a

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-22 Thread Frederick Cheung
On Nov 22, 11:56 am, "Greg Hauptmann" <[EMAIL PROTECTED]> wrote: > ok, re "I'm just trying to load a set of options which doesn't require > tables (i.e. using tableless plugin)" I've got the View working now, > however when I submit back I have an error as Rails tries to populate > the associati

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-22 Thread Greg Hauptmann
ok, re "I'm just trying to load a set of options which doesn't require tables (i.e. using tableless plugin)" I've got the View working now, however when I submit back I have an error as Rails tries to populate the association models. Any ideas - it's like the parameter array/hash structure comin