No view after creating controller

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.

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:

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

It’s OK now.

1 Like