RailsCasts Pro episodes are now free!

Learn more or hide this

L.S. Cook's Profile

GitHub User: indie

Site: http://www.hackeress.com

Comments by L.S. Cook

Avatar

Never mind. . . it was a stupid oversight; my deploy script doesn't run migrations automatically (which I gotta fix) so the fix was simply to run a manual migration on prod:

bundle exec rake db:migrate RAILS_ENV=production

Avatar

This is great and works on local, but throws a 500 on production for some reason. I'm thinking it has something to do with what he mentions around ~08:09

"... In a real application you'll want to check the entire path to make sure that the parents are correct"

and then he talks about the shortcut method. Any ideas for what the non-shortcut method would be? I have a Node model I would like to be invisible as parent