I generated a new application in the console with the rails new stukdo
, then I generated the controller and the rails generate controller pages home
view, then I open this view, I write HELLO WORLD
in the html editor, and I launch the server and it curses these 2 lines. I just deleted them and it seems like it is displayed. Can I delete them? What triggered this mistake? How to correct it? If anything, I work under windows operating system, screencast announcer does on MacOS
|
1 answer
In this case, replace 'application' with 'default' and get your "Hello World". But, in the future, when you write a serious web application, you will definitely use css / js and this will be a problem, because, for example, css is presented on rails via scss, which in turn compiles. And Windows does not cope with this task. These two lines form the link tag, which connects the css / js files to the page. Install VirtualBox and Ubuntu. Writing on rails from under Windows is a bad idea.
- What means does not cope? - Nakilon
|
therubyracer
or Node.js? And it would be interesting to look at the traces. And try to attach the relevant information for the question text, not pictures. - D-side