Methods
Instance Public methods
create()
Link
Source: show
# File app/controllers/hooks_controller.rb, line 13 def create @hook = @project.hooks.new(params[:hook]) @hook.save if @hook.valid? redirect_to project_hooks_path(@project) else @hooks = @project.hooks.all render :index end end
destroy()
Link
Source: show
# File app/controllers/hooks_controller.rb, line 31 def destroy @hook = @project.hooks.find(params[:id]) @hook.destroy redirect_to project_hooks_path(@project) end