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.
21 lines
327 B
21 lines
327 B
class BikeBrandsController < AuthenticatedController
|
|
expose(:bike_brand)
|
|
expose(:bike_brands) { BikeBrand.order('id').paginate(:page => params[:page]) }
|
|
|
|
def index
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
def new
|
|
end
|
|
|
|
def create
|
|
if bike_brand.save
|
|
redirect_to bike_brands_url
|
|
else
|
|
render :new
|
|
end
|
|
end
|
|
end
|
|
|