Added carlogs controller and index

parent 27b46852
class CarLogsController < ApplicationController
def index
@cars = CarLog.all
render "carlogs/index.html.erb"
end
end
\ No newline at end of file
<h1>Hello Carlogs</h1>
\ No newline at end of file
Rails.application.routes.draw do
root(to:"pages#index")
get "/carlogs", to: "car_logs#index"
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