Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Datababes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
George Nicole Balmaceda
Datababes
Commits
27b46852
Commit
27b46852
authored
Jul 05, 2016
by
George Nicole Balmaceda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added index and controllers
parent
9d5e45e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
54 deletions
+7
-54
car_logs_controller.rb
parkinglot/app/controllers/car_logs_controller.rb
+0
-0
pages_controller.rb
parkinglot/app/controllers/pages_controller.rb
+5
-0
index.html.erb
parkinglot/app/views/pages/index.html.erb
+1
-0
routes.rb
parkinglot/config/routes.rb
+1
-54
No files found.
parkinglot/app/controllers/car_logs_controller.rb
0 → 100644
View file @
27b46852
parkinglot/app/controllers/pages_controller.rb
0 → 100644
View file @
27b46852
class
PagesController
<
ApplicationController
def
index
render
"pages/index.html.erb"
end
end
\ No newline at end of file
parkinglot/app/views/pages/index.html.erb
0 → 100644
View file @
27b46852
Hello World
\ No newline at end of file
parkinglot/config/routes.rb
View file @
27b46852
Rails
.
application
.
routes
.
draw
do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
root
(
to
:"pages#index"
)
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment