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
eac5bc4a
Commit
eac5bc4a
authored
Jul 05, 2016
by
Alexander Hans Collado Jr.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added carlogs controller and index
parent
27b46852
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
car_logs_controller.rb
parkinglot/app/controllers/car_logs_controller.rb
+6
-0
index.html.erb
parkinglot/app/views/carlogs/index.html.erb
+1
-0
routes.rb
parkinglot/config/routes.rb
+3
-0
No files found.
parkinglot/app/controllers/car_logs_controller.rb
View file @
eac5bc4a
class
CarLogsController
<
ApplicationController
def
index
@cars
=
CarLog
.
all
render
"carlogs/index.html.erb"
end
end
\ No newline at end of file
parkinglot/app/views/carlogs/index.html.erb
0 → 100644
View file @
eac5bc4a
<h1>
Hello Carlogs
</h1>
\ No newline at end of file
parkinglot/config/routes.rb
View file @
eac5bc4a
Rails
.
application
.
routes
.
draw
do
root
(
to
:"pages#index"
)
get
"/carlogs"
,
to:
"car_logs#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