1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-03-01 01:03:23 -05:00
BikeShed-1/app/controllers/bike_conditions_controller.rb

36 lines
557 B
Ruby
Raw Normal View History

class BikeConditionsController < AuthenticatedController
expose(:bike_condition)
expose(:bike_conditions) { BikeCondition.order('id').paginate(:page => params[:page]) }
def index
end
def show
end
def new
end
def create
if bike_condition.save
redirect_to bike_conditions_url
else
render :new
end
end
def update
if bike_condition.save
redirect_to bike_conditions_url
else
render :edit
end
end
def destroy
bike_condition.destroy
redirect_to bike_conditions_url
end
end