There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
I want access to the command line wether or not the step uses it. My session timed out and I can’t start a new one. (I went to try a couple things in a IDE and when I came back, my browser stopped working)
While doing this exercise I ran into several problems:
This version of rails doesn’t accept the abbreviation “g” for “generate” when making new models, etc. Rails created the model correctly, but I had to ask for the solution to get to the next step. “g” is a normal abbreviation in rails an should work; is this installation broken?
rake “db:migrate” failed, but the error message (after complaining about a mismatch between rake 12.3.2 and gemfiles 10.4.2) said to use “build exec rake db:migrate” instead. That worked. Perhaps the instructions are incorrect.
when displaying my page I get an error from application.html.erb:6 about a missing /usr/bin/node file. It looked like this is for javascript so I commented it out. The page then successfully displayed, with no side effects. But this file should be installed in my environment, or the default application.html.erb file changed.
I got a “circular reference - now” message from “timezone.rb:285” when running rails. The rails process finishes correctly, but it is disconcerting to see an error message when you are not sure you are doing the step correctly. I finally decided that I had done the step correctly, and continued on.
These are the kinds of things that make it hard to learn from tutorials. Many of these would have been caught by someone UN-familiar with the content.
All I’m getting in the embedded browser is “504 Gateway Time-out”.
I made it through steps 1-6 without any issues, and the embedded browser updated as expected.
On step 7, I added <%= link_to 'New Message', 'messages/new' %> instead of <%= link_to 'New Message', "messages/new" %> (single quotes on the path instead of double quotes), and the embedded browser rendered the page properly with the new button, however the steps section checkmark verification failed, and I got the error popover on my code saying “Make sure to add the ‘link_to’ to app/views/messages/index.html.erb.”
Everything looked good to me, the quote difference was the only thing I could see as different than instructed. I adjusted it to double quotes in case that made a difference, and clicked “Run” again, and then the embedded browser showed “504 Gateway Time-out”, and now seems stuck there no matter what I do.
Did I type something wrong? How do I get unstuck from the 504 error?
Very frustrating exercise. There was no HTML view file corresponding to the ‘new’ action, so I was getting an error about null actions or something like that. To fix this, I figured I needed to create a new ‘new’ file. Of course this is just an empty HTML document because I don’t really know HTML.
All of a sudden, step 6 is telling me to paste in some HTML ‘on line 11 of app/views/messages/new.html.erb’. Unfortunately, this file doesn’t exist! So I couldn’t finish the exercise.
Apart from this, on step 5 I randomly started getting a 504 gateway timeout error. Nothing I did could fix this in the code. I started a new browser session and then finally the issue was resolved.
Finally, what’s with the layout of this lesson? We’re literally just copying and pasting code with no context. There’s very little value. TIsn’t the whole purpose of this website is to make learning interactive?
You can fix this by just creating the file new.html.erb yourself and pasting the content in there.
I agree with you though that this whole course is a bit of a hot mess. This isn’t the first time I got an error message after following the instructions perfectly. And the amount of copy pasting involved ensured that I had no clue what to do when I came t the first project, especially since there’s no reference sheet.
I hope someone is actually reading these posts, because, while I am generally enthusiastic about codecademy, this one is just not ready for prime time.
I had a really fun time completing the Ruby course and was equally excited to finally learn Rails until I started realizing what’s stopping me from learning Rails smoothly isn’t my laziness but the actual content. I do everything they ask me only to keep hitting 504 error. It also doesn’t seem like the Ruby/Rails contents don’t get moderated as much as the other more popular courses. Pretty sad as I was really enjoying this section of the catalog.
As of today the file new.html.erb is still missing from this course. Is someone from codecademy reading these threads?
Because of this I can’t complete the 8th step of the chapter and there’s no way to skip to the next one. So what should I do now? I signed up for the ruby courses, guess I can delete my account now since this appears to be broken for over a month
when this happens, check to see that you are in the directory once again before firing up the server. If you are in the correct directory but the server won’t start, run ‘bundle install’ and the run the server and see if that helps.
Checking in to say that 3 years and 3 months later, the program is still missing new.html.erb in Saving data // Create messages I. The lesson breaks at step 2 without the file.
The Rails course has been frustrating as I thought I was missing something or not completely comprehending the material. It does not hold your hand like most courses on pro-career paths.
Totally agree with you, and it’s not free! Anyway, for those who are stuck like me, I added new.html.erb that is similar to the original index.html.erb. This helps me get past steps 2 and 3 at least.
<div class="header">
<div class="container">
<img src="https://content.codecademy.com/courses/learn-rails/img/logo-1m.svg">
<h1>Messenger</h1>
</div>
</div>
<div class="create">
<div class="container">
<!-- Your code here -->
</div>
</div>
This course is years old and still has major breaking errors. We are PAYING for this, someone needs fix this garbage. I was able to figure out the missing new template pretty quick, but i’m getting 404s when i try to create a new message at the end, and I suspect from looking at the code that there are some glaring mistakes in their example code. Very disappointing course, appalling to be honest.
There is a new.html.erb file in the course now. However, you deal with it out of order which causes an error message in step two. Luckily step two is a straight forward cut and paste, so I knew I was doing it right. If you just scroll down to step 6 and do that step it will resolve the error and you’ll be able to get the checkmark at step two.