Skip to content

Rails program stops executing due to error

Sean Lerner edited this page Apr 11, 2017 · 31 revisions

When a rails ruby script stops executing, rails will serve up a web page with details on what caused the error.

How To Fix

Step 1. Check to see if we have a specific guide on how to troubleshoot common issues

  • [Routing Error: No route matches](Guide not yet ready, coming soon!)
  • [Routing Error: uninitialized constant](Guide not yet ready, coming soon!)
  • [Unknown action](Guide not yet ready, coming soon!)
  • [ActionController::UnknownFormat: missing a template](Guide not yet ready, coming soon!)
  • [NoMethodError: undefined method `<method_name>' for nil:NilClass](Guide not yet ready, coming soon!)
  • [NameError: uninitialized constant](Guide not yet ready, coming soon!)
  • [NameError: undefined local variable or method](Guide not yet ready, coming soon!)
  • [ActiveRecord::PendingMigrationError](Guide not yet ready, coming soon!)

Clone this wiki locally