Added BikeConditions resources, controller, and views

This commit is contained in:
Jason Denney
2012-12-09 17:53:06 -05:00
parent ca8b945e03
commit 7e0f43b271
7 changed files with 86 additions and 0 deletions
@@ -0,0 +1,35 @@
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