mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Added bike styles routes, controller and views
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
class ActsAsLoggable::BikeActionsController < AuthenticatedController
|
||||
expose(:bike_action) do
|
||||
if params[:id]
|
||||
BikeAction.find(params[:id])
|
||||
elsif params[:bike_action]
|
||||
BikeAction.new(params[:bike_action])
|
||||
else
|
||||
puts "WhOOOPS"
|
||||
#BikeAction.new(:max_members => 16)
|
||||
end
|
||||
end
|
||||
|
||||
expose(:bike_actions) { BikeAction.order('id').paginate(:page => params[:page]) }
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
if bike_action.save
|
||||
redirect_to bike_actions_url
|
||||
else
|
||||
render :new
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user