Number 4 is confusing as heck


#1
  1. Generate a controller named Pages.

What does this even mean? am I supposed to create it in the bash(how??) or like always in the editor? usually it says "create a controller named Pages" not generate? The tasks are very poorly explained, it feels like you were in a extreme hurry when you wrote this course, lol.


#2

Hello @melkerx,

The command for generating a controller is

rails generate controller <controller_name>

Hope this fixes your problem...


#3

Oh wow.. :smiley:
where did we practise on this? they cant just think we know every command in our head right? o.O I must have missed it lol


#4

No worries, @melkerx. Keep coding hard :laughing:!


#5

it says; bashsyntax error near unexpected token 'newline':

???


#6

Hey @melkerx,

What command did you type in?


#7

rails generate controller < Pages >
without the spaces
I'm in broadway (pwd)


#8

Hello @melkerx,

You have to specify a controller name. Otherwise, rails will not be able to generate it...


#9

pages is the name? is it not?


#10

Oh, I am sorry for the misunderstanding... The controller name itself shouldn't be inside angle brackets, I just meant that to be a placeholder. It is actually meant to be like this

rails generate controller Pages

Hope this clears things out, and again, very sorry for the miscommunication...


#11

Worked! kind of confusing, idk why they want me to code stuff I have not studied.. hmm, weird.


#12

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.