houdini/app/controllers/activities_controller.rb

10 lines
175 B
Ruby
Raw Normal View History

class ActivitiesController < ApplicationController
before_filter :authenticate_user!, only: [:create]
def create
json_saved Activity.create(params[:activity])
end
end