OSDN Git Service

t#29312:any update
[pettanr/pettanr.git] / app / controllers / application_controller.rb
index f108ef9..125b159 100644 (file)
@@ -15,7 +15,7 @@ class ApplicationController < ActionController::Base
         @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
@@ -26,7 +26,7 @@ class ApplicationController < ActionController::Base
       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