Commit 22c3526a authored by royce-matthew's avatar royce-matthew

added a blank form - Royce Matthew Chan

parent 4864060d
......@@ -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
<h2>Hello Form</h2>
\ No newline at end of file
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment