my _form.html.erb was rendered by new.html.erb; from my form:
<%= form_for(@profile) do |f| %>
from firefox->tools->web developer->page source
and then when submitted raises ActiveRecord::RecordNotUnique in
ProfilesController#create
the create action:
def create @profile = Profile.new(profile_params)
…
so what’s wrong
and then when submitted raises ActiveRecord::RecordNotUnique in
ProfilesController#create
the create action:
def create @profile = Profile.new(profile_params)
…
so what’s wrong
As I am sure you saw when you googled for the error that this means
that one of your uniqueness constraints on the profile is being saved.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.