mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
actsasloggable transaction actions fixtures, resources, controller, and views
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
class ActsAsLoggable::TransactionActionsController < AuthenticatedController
|
||||
#TODO Fix this so updating works
|
||||
expose(:transaction_action)
|
||||
expose(:transaction_actions) { ActsAsLoggable::TransactionAction.order('id').paginate(:page => params[:page]) }
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
if transaction_action.save
|
||||
redirect_to acts_as_loggable_transaction_actions_url
|
||||
else
|
||||
render :new
|
||||
end
|
||||
end
|
||||
|
||||
def update
|
||||
puts transaction_action.inspect
|
||||
if transaction_action.save
|
||||
redirect_to acts_as_loggable_transaction_actions_url
|
||||
else
|
||||
render :edit
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
transaction_action.destroy
|
||||
redirect_to acts_as_loggable_transaction_actions_url
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user