To most quickly reach a solution when using the Ask a Question feature in Learn, it's important to provide as much context to your question as possible. Here's how!

First off, here are some steps you should do before you ask a question:

  1. Carefully read the error message.  Take a look at the lines that come after the error message (the stack trace). Usually right near the top or right near the bottom is one of the files you're working on and a line number where the code broke. Does this provide you with any clues? 
  2. Try and replicate the error in IRB (for ruby) or the Chrome Console (for JavaScript) to get a better understanding of what's going wrong.
  3. Try googling the error message you are getting. You'll often find solutions that other developers have found apply to your program as well!

If you've tried all of these things for a while and you're still stuck, then it's probably time to ask a question. Here are some important considerations that will make your question easier for others to solve:

  1. Sum up the error into something short for the initial input to Ask a Question. Something like, "Getting 'no method error' when trying to write my hello method". If you paste a giant error message in when creating the question, it will be hard for others to read.
  2. Immediately follow up your question with this information: your code, your full error, what you did to reach that error, what you expected to happen, and what actually happened. This may sound like a lot of steps, but it will really help others jump right in!
Did this answer your question?