OSDN Git Service

rename lisence to license
[pettanr/pettanr.git] / app / controllers / home_controller.rb
index fea06ed..0b64ee9 100644 (file)
@@ -52,7 +52,7 @@ class HomeController < ApplicationController
   end
   
   def step3
-    @artist = Artist.new :author_id => current_author.id, :name => current_author.name, :default_lisence_id => 1
+    @artist = Artist.new :author_id => current_author.id, :name => current_author.name, :default_license_id => 1
   end
   
   def save_step3
@@ -85,14 +85,14 @@ class HomeController < ApplicationController
   def picture
     if current_author.artist?
       @original_pictures = OriginalPicture.find(:all, 
-        :include => [:artist, :lisence, :resource_picture], :conditions => ['artist_id = ?', current_author.artist.id], 
+        :include => [:artist, :license, :resource_picture], :conditions => ['artist_id = ?', current_author.artist.id], 
         :order => 'updated_at', :limit => 20
       )
 
       respond_to do |format|
         format.html # index.html.erb
         format.json { render :json => @original_pictures.to_json(
-          :include => [:resource_picture, :artist, :lisence]
+          :include => [:resource_picture, :artist, :license]
         ) }
       end
     else