Skip to content

Instantly share code, notes, and snippets.

@butzopower
Created August 24, 2009 21:46
Show Gist options
  • Save butzopower/174240 to your computer and use it in GitHub Desktop.
Save butzopower/174240 to your computer and use it in GitHub Desktop.
(rdb:24) params[:animal_pad_group]
{"user"=>"", "location_building"=>"988265101", "account_id"=>"Accounts will populate after a PI is selected", "effective_start_date"=>"", "quantity"=>"", "location_room"=>"988265151", "effective_end_date"=>""}
(rdb:24) pg = Animal::PadGroup.new(params[:animal_pad_group])
#<Animal::PadGroup id: nil, account_id: 0, location_id: nil, quantity: nil, effective_start_date: nil, effective_end_date: nil, created_at: nil, updated_at: nil>
(rdb:24) pg.instance_variables
["@changed_attributes", "@attributes", "@new_record", "@attributes_cache"]
(rdb:24) pg.location_building = params[:animal_pad_group][:location_building]
"988265101"
(rdb:24) pg.instance_variables
["@changed_attributes", "@attributes", "@new_record", "@attributes_cache", "@location_building"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment