Skip to content

Instantly share code, notes, and snippets.

@PeteMichaud
Created June 28, 2012 22:14
Show Gist options
  • Save PeteMichaud/3014325 to your computer and use it in GitHub Desktop.
Save PeteMichaud/3014325 to your computer and use it in GitHub Desktop.
ActiveRecord::RecordNotSaved in Admin::UsersController#update
Failed to remove the existing associated subscription. The record failed to save when after its foreign key was set to nil.
{"utf8"=>"✓",
"_method"=>"put",
"authenticity_token"=>"...",
"user"=>{"email"=>"blah@gmail.com",
"password"=>"[FILTERED]",
"first_name"=>"Tom",
"last_name"=>"Jones",
"subscription_attributes"=>{"plan_id"=>"5"}},
"password_confirmation"=>"[FILTERED]",
"commit"=>"Update User",
"id"=>"2"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment