Rails form submission raising ActiveRecord::RecordNotUnique

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

On 28 December 2015 at 14:32, fugee ohu [email protected] wrote:

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