Displaying 1 result from an estimated 1 matches for "reg_params".
Did you mean:
  key_params
  
2006 Feb 20
0
No Magic for HABTM forms?
...text_field_tag("registration[people][1][first_name]" ...
text_field_tag("registration[people][2][first_name]" ...
Then my registration_controller handles the creation and mapping of  
those two people to the registration explicitly (This feels LAME):
def save_registration
   reg_params = @params[''registration'']
   @registration = Registration.new()
     people = reg_params[:people]
     people.each {|key, properties|
       existing = Person.find(:first, :conditions => ["first_name = ?  
AND last_name = ?", properties["first_name"], prope...