No view after creating controller


#1

I've created a controller and I don't have a view. It should be created together with rails g controller ..., shouldn't it? I can't progress.

https://www.codecademy.com/en/courses/learn-rails/lessons/start/exercises/start-views?action=resume


#2

Hi Jędrek,

By “view”, do you mean you're expecting the computer to automatically generate index.html.erb, new.html.erb, and the rest, or do you mean a subdirectory in views for that controller?

Creating files shouldn't be happening here, but creating the directory should :slight_smile:


#3

Sorry, I confused it. I just did not know how to create the file home.html.erb.

It's OK now.


#4