Sha256: 16bc17b112fa9b39f7ce9250a5fb220dca872c85f7e14d7bebb8216c4a2052d2
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
module Catarse class UpdatesController < BaseController inherit_resources load_and_authorize_resource actions :index, :create, :destroy respond_to :html, :only => [ :index, :create, :destroy ] belongs_to :project def index index! do |format| format.html{ return render :index, :layout => false } end end def create @update = parent.updates.new(params[:update]) @update.user = current_user create! do |format| format.html{ return index } end end def destroy destroy!{|format| return index } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catarse_core-1.0.0.beta | app/controllers/catarse/updates_controller.rb |