Closed haslinger closed 9 years ago
Well this was an interesting one. When I commented out the author actions, the original error showed up. I unintentionally imported an extension for the Order model from an Engine, that was not installed - so the import failed. Removing that import let the application start again. Then I commented in the auto_actions again and everything was find. My learnings: Errors can be shadowed ....
Interesting!
I have a strange issue after deploying, I get the error
when I try to migrate the database, compile the assets or run the console. It results from my
auto_actions_for :user, :index
in the orders_controller, Orders have a belongs_to relation to User, so nothing too fancy.So I looked into the line, which is the second line of the method definition:
in another system, everything is fine:
Order.reflections[:user].macro
returns:belongs_to
Currently, I'm mainly thinking, how I can debug this ...