OSDN Git Service

fix: bin tool
[pettanr/pettanr.git] / app / controllers / pictures_controller.rb
index 435b481..62be192 100644 (file)
@@ -41,7 +41,7 @@ class PicturesController < ApplicationController
   
   def credit
     @picture = Picture.show(params[:id], @operators)
-
+    
     respond_to do |format|
       format.html { render :layout => false }
       format.json { render :json => @picture.to_json}
@@ -49,7 +49,7 @@ class PicturesController < ApplicationController
   end
   
   def search
-    @pictures = Picture.list_by_md5(params[:md5])
+    @pictures = Picture.find_by_md5(params[:md5])
     
     respond_to do |format|
       format.html