I'm trying to create a separate Profile model for Devise Users with things such as location, biography, blah, blah, blah. The problem is that I can't get it to save to the database.

My users are called "artists".

### /routes.rb ### get 'artists/:id/new_profile' => 'artists/profiles#new', as: :profile post 'artists/:id/new_profile' => 'artists/profiles#create' ### artists/profiles_controller.rb ### class Artists::ProfilesController < ApplicationController before_action :authenticate_artist! def new @artist = current_artist @profile = ArtistProfile.new end def create @artist = current_artist @profile = ArtistProfile.new(profile_params) if @profile.save redirect_to current_artist else render 'new' end end end ### /artist.rb ### class Artist < ActiveRecord::Base devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :confirmable, :lockable, :timeoutable has_one :artist_profile, dependent: :destroy ### /artist_profile.rb ### class ArtistProfile < ActiveRecord::Base belongs_to :artist validates :artist_id, presence: true end ### /views/artists/profiles/new.html.erb ### <%= form_for(@profile, url: profile_path) do |f| %> <div class="field"> <%= f.label :biography, "biography", class: "label" %> <%= f.text_area :biography, autofocus: true , class: "text-field" %> </div> <div class="field"> <%= f.label :location, "location", class: "label" %> <%= f.text_field :location, class: "text-field" %> </div> ... ... ... <div class="actions"> <%= f.submit "create profile", class: "submit-button" %> </div> <% end %>

What am I doing wrong here?