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
22c3526a
Commit
22c3526a
authored
Jul 05, 2016
by
royce-matthew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a blank form - Royce Matthew Chan
parent
4864060d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
car_logs_controller.rb
parkinglot/app/controllers/car_logs_controller.rb
+4
-0
form.html.erb
parkinglot/app/views/carlogs/form.html.erb
+1
-0
routes.rb
parkinglot/config/routes.rb
+1
-0
No files found.
parkinglot/app/controllers/car_logs_controller.rb
View file @
22c3526a
...
...
@@ -3,4 +3,8 @@ class CarLogsController < ApplicationController
@cars
=
CarLog
.
all
render
"carlogs/index.html.erb"
end
def
form
@cars
=
CarLog
.
all
render
"carlogs/form.html.erb"
end
end
\ No newline at end of file
parkinglot/app/views/carlogs/form.html.erb
0 → 100644
View file @
22c3526a
<h2>
Hello Form
</h2>
\ No newline at end of file
parkinglot/config/routes.rb
View file @
22c3526a
...
...
@@ -2,6 +2,7 @@ Rails.application.routes.draw do
root
(
to
:"pages#index"
)
get
"/carlogs"
,
to:
"car_logs#index"
get
"/group"
,
to:
"pages#group"
get
"/carlogs/new"
,
to:
"car_logs#form"
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