0
0
Fork 0

Adding a notification stack for error messages

This commit is contained in:
Eugen Rochko 2016-09-12 19:20:55 +02:00
parent 05b0c985b4
commit d6a64f45fd
17 changed files with 115 additions and 45 deletions

View file

@ -3,6 +3,10 @@ class Api::FollowsController < ApiController
respond_to :json
def create
if params[:uri].blank?
raise ActiveRecord::RecordNotFound
end
@follow = FollowService.new.(current_user.account, params[:uri])
render action: :show
end