-
Notifications
You must be signed in to change notification settings - Fork 2
Rails program stops executing due to error
Sean Lerner edited this page Apr 12, 2017
·
31 revisions
When a rails ruby script stops executing, rails will serve up a web page with details on what caused the error.
First check to see if we have a specific guide on troubleshooting common errors:
- Unknown action
- ActionController::UnknownFormat: missing a template
- NoMethodError: undefined method `<method_name>' for nil:NilClass
- NameError: uninitialized constant
- NameError: undefined local variable or method
- ActiveRecord::PendingMigrationError
If your error isn't listed above, proceed to the next step.
We still need to write content for troubleshooting rails errors (that are not listed above), but until that is available, try using the Ruby troubleshooting guide.
This is a living document. If you have anything to add, change or remove, please let us know. Or better yet, as it's a wiki, make the change yourself!