1
0
Fork 0
beathaven/app/controllers/api/albums_controller.rb

17 lines
337 B
Ruby
Raw Normal View History

2012-08-26 23:53:30 +00:00
module Api
class AlbumsController < BaseController
2012-09-18 22:40:46 +00:00
before_filter :validate_request!
2012-08-26 23:53:30 +00:00
def picture
album = Album.find(params[:id])
2012-09-18 22:40:46 +00:00
redirect_to album.update_image.sized(:extralarge)
2012-08-26 23:53:30 +00:00
end
2012-09-01 17:55:01 +00:00
def show
@album = Album.find(params[:id])
return render json: { fail: true } if @album.nil?
2012-09-01 17:55:01 +00:00
end
2012-09-18 22:40:46 +00:00
2012-08-26 23:53:30 +00:00
end
end