@artist = if @author and @author.artist?
@author.artist
else
- Artist.new author_id: @author.id, email: @user.email, name: @author.name, default_license_id: 1
+ Artist.new author_id: @author.id, email: @user.email, name: @author.name
end
end
end
true
else
respond_to do |format|
- format.html { redirect_to new_artist_path, :status => :found }
+ format.html { redirect_to main_app.new_artist_path, :status => :found }
format.js { render "artists/new" }
format.json {
raise ActiveRecord::Forbidden