Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parkinglot
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
MiiikoLang
parkinglot
Commits
d71d6145
Commit
d71d6145
authored
Jul 05, 2016
by
Francesco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the pages_controller and other related
parent
d1772614
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
54 deletions
+13
-54
page_controller.rb
parkinglot/app/controllers/page_controller.rb
+5
-0
pages_controller.rb
parkinglot/app/controllers/pages_controller.rb
+5
-0
index.html.erb
parkinglot/app/views/pages/index.html.erb
+2
-0
routes.rb
parkinglot/config/routes.rb
+1
-54
No files found.
parkinglot/app/controllers/page_controller.rb
0 → 100644
View file @
d71d6145
class
PagesController
<
ApplicationController
def
index
render
"pages/index.html.erb"
end
end
parkinglot/app/controllers/pages_controller.rb
0 → 100644
View file @
d71d6145
class
PagesController
<
ApplicationController
def
index
render
"pages/index.html.erb"
end
end
parkinglot/app/views/pages/index.html.erb
0 → 100644
View file @
d71d6145
<h1>
Welcome to Our Parking Lot!
</h1>
<h2>
Created by Miko, Chesco and Manny
</h2>
\ No newline at end of file
parkinglot/config/routes.rb
View file @
d71d6145
Rails
.
application
.
routes
.
draw
do
Rails
.
application
.
routes
.
draw
do
# The priority is based upon order of creation: first created -> highest priority.
root
to:
"pages#index"
# 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
end
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