search for: thebitt

Displaying 2 results from an estimated 2 matches for "thebitt".

Did you mean: thebit
2006 May 26
1
Form for Multiple Models
I have a signup form that needs to do these three things: 1) create a new "Group" 2) create a new "User" 3) Add that User to the Group I have the scaffolding for the create new user form: <% form_for :user do |form| %> <p> <label for="user_name">First Name:</label> <%= form.text_field
2006 Jan 04
0
Multiple Record Form and Controller to update Multiple Models Example
I couldn''t find any examples of how to create a multiple record form and controller for updating multiple models from one form. Once I figured it out I posted it at: http://thebitt.blogspot.com/2006/01/multiple-record-forms-for-ruby-on.html It code creates an account with a user. It collects account name and user information and then updates both account and user models. I still don''t know how to grab the validation error messages so I can consolidate them into on...