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
a1b3d27a
Commit
a1b3d27a
authored
Jul 05, 2016
by
Francesco Martin Mamaradlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added all controllers,html and routes
parent
ed8aae7e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
7 deletions
+35
-7
Gemfile.lock
parkinglot/Gemfile.lock
+3
-0
car_logs_controller.rb
parkinglot/app/controllers/car_logs_controller.rb
+11
-0
page_controller.rb
parkinglot/app/controllers/page_controller.rb
+0
-5
pages_controller.rb
parkinglot/app/controllers/pages_controller.rb
+4
-0
add_cars.html.erb
parkinglot/app/views/car_logs/add_cars.html.erb
+1
-0
index.html.erb
parkinglot/app/views/car_logs/index.html.erb
+2
-0
creators.html.erb
parkinglot/app/views/pages/creators.html.erb
+8
-0
index.html.erb
parkinglot/app/views/pages/index.html.erb
+3
-2
routes.rb
parkinglot/config/routes.rb
+3
-0
No files found.
parkinglot/Gemfile.lock
View file @
a1b3d27a
...
...
@@ -159,3 +159,6 @@ DEPENDENCIES
tzinfo-data
uglifier (>= 1.3.0)
web-console (~> 2.0)
BUNDLED WITH
1.10.4
parkinglot/app/controllers/car_logs_controller.rb
0 → 100644
View file @
a1b3d27a
class
CarLogsController
<
ApplicationController
def
index
render
"car_logs/index.html.erb"
end
def
add
render
"car_logs/add_cars.html.erb"
end
end
parkinglot/app/controllers/page_controller.rb
deleted
100644 → 0
View file @
ed8aae7e
class
PagesController
<
ApplicationController
def
index
render
"pages/index.html.erb"
end
end
parkinglot/app/controllers/pages_controller.rb
View file @
a1b3d27a
...
...
@@ -2,4 +2,8 @@ class PagesController < ApplicationController
def
index
render
"pages/index.html.erb"
end
def
creators
render
"pages/creators.html.erb"
end
end
parkinglot/app/views/car_logs/add_cars.html.erb
0 → 100644
View file @
a1b3d27a
<h1>
Add Cars
</h1>
\ No newline at end of file
parkinglot/app/views/car_logs/index.html.erb
0 → 100644
View file @
a1b3d27a
<h1>
Car Records
</h1>
<a
href=
"/car_logs/add"
>
Add Entry
</a>
\ No newline at end of file
parkinglot/app/views/pages/creators.html.erb
0 → 100644
View file @
a1b3d27a
<h1>
Meet the Creators
</h1>
<body>
<li>
Miko
</li>
<li>
Chesco
</li>
<li>
Manny
</li>
</body>
parkinglot/app/views/pages/index.html.erb
View file @
a1b3d27a
<h1>
Welcome to Our Parking Lot!
</h1>
<h2>
Created by Miko, Chesco and Manny
</h2>
\ No newline at end of file
<h1>
Park Lot 1.0
</h1>
<a
href=
"/pages"
>
Meet the Creators
</a>
<a
href=
"/car_logs"
>
View Car Parking Log
</a>
parkinglot/config/routes.rb
View file @
a1b3d27a
Rails
.
application
.
routes
.
draw
do
root
to:
"pages#index"
get
"/pages"
,
to:
"pages#creators"
get
"/car_logs"
,
to:
"car_logs#index"
get
"/car_logs/add"
,
to:
"car_logs#add"
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