mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
22 lines
327 B
Ruby
22 lines
327 B
Ruby
class BikeModelsController < AuthenticatedController
|
|
expose(:bike_model)
|
|
expose(:bike_models) { BikeModel.order('id').paginate(:page => params[:page]) }
|
|
|
|
def index
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
def new
|
|
end
|
|
|
|
def create
|
|
if bike_model.save
|
|
redirect_to bike_models_url
|
|
else
|
|
render :new
|
|
end
|
|
end
|
|
end
|