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.
36 lines
532 B
36 lines
532 B
12 years ago
|
class BikeStatusesController < AuthenticatedController
|
||
|
expose(:bike_status)
|
||
|
|
||
|
expose(:bike_statuses) { BikeStatus.order('id').paginate(:page => params[:page]) }
|
||
|
|
||
|
def index
|
||
|
end
|
||
|
|
||
|
def show
|
||
|
end
|
||
|
|
||
|
def new
|
||
|
end
|
||
|
|
||
|
def create
|
||
|
if bike_status.save
|
||
|
redirect_to bike_statuses_url
|
||
|
else
|
||
|
render :new
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def update
|
||
|
if bike_status.save
|
||
|
redirect_to bike_statuses_url
|
||
|
else
|
||
|
render :edit
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def destroy
|
||
|
bike_status.destroy
|
||
|
redirect_to bike_statuses_url
|
||
|
end
|
||
|
end
|