Velocipede's User, Sales, and Bike Inventory Web App
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.

32 lines
567 B

class ActsAsLoggable::BikeActionsController < AuthenticatedController
expose(:bike_action) do
if params[:id]
BikeAction.find(params[:id])
elsif params[:bike_action]
BikeAction.new(params[:bike_action])
else
puts "WhOOOPS"
#BikeAction.new(:max_members => 16)
end
end
expose(:bike_actions) { BikeAction.order('id').paginate(:page => params[:page]) }
def index
end
def show
end
def new
end
def create
if bike_action.save
redirect_to bike_actions_url
else
render :new
end
end
end