After like 3 weeks of not touching code I decided to refresh my pet project a little bit, below are random issues you might encounter while trying to upgrade your old Rails 4 app to Rails 5.
uninitialized constant ActionController::RedirectBackError
- Returning
falseinbefore_savecallback doesn’t halt it (old kinda specific Rails gotcha/behavior).
NoMethodError: super: no superclass method xhr for RSpec::ExampleGroups::<controller>
render nothing: truetries to render template
ArgumentError: unknown keyword: <key>
- No method error on
object.errors.get(:field)