mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
644 B
35 lines
644 B
class ActsAsLoggable::BikeActionsController < AuthenticatedController
|
|
#TODO Fix this so updating works
|
|
expose(:bike_action)
|
|
expose(:bike_actions) { ActsAsLoggable::BikeAction.order('id').paginate(:page => params[:page]) }
|
|
|
|
def index
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
def new
|
|
end
|
|
|
|
def create
|
|
if bike_action.save
|
|
redirect_to acts_as_loggable_bike_actions_url
|
|
else
|
|
render :new
|
|
end
|
|
end
|
|
|
|
def update
|
|
if bike_action.save
|
|
redirect_to acts_as_loggable_bike_actions_url
|
|
else
|
|
render :edit
|
|
end
|
|
end
|
|
|
|
def destroy
|
|
bike_action.destroy
|
|
redirect_to acts_as_loggable_bike_actions_url
|
|
end
|
|
end
|
|
|