Adding a notification stack for error messages

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

No files matched your search

@@ -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