def credit
@picture = Picture.show(params[:id], @operators)
-
+
respond_to do |format|
format.html { render :layout => false }
format.json { render :json => @picture.to_json}
end
def search
- @pictures = Picture.list_by_md5(params[:md5])
+ @pictures = Picture.find_by_md5(params[:md5])
respond_to do |format|
format.html