Rails 3.0 & Ruby 1.9.2Rc: Rake Commands Return 'Already Initialized Constant' & Stack Level Too Deep Errors. Any Ideas

Rails 3.0 & Ruby 1.9.2rc: Rake commands return 'already initialized constant' & stack level too deep errors. Any ideas

I'm afraid the easier solution is running this command instead of rake db:migrate

bundle exec rake db:migrate

rake aborted! stack level too deep

try placing bundle exec in front of the rake command.

bundle exec rake -T

Problems with Ubuntu Rails install

bundle exec rake db:migrate is what you need.

converting Object to array or similar in Flex

You can get dynamic properties like this:

var property:String;
var errors:Object = result.errors;
for (property in errors)
{
trace(errors[property]);
}

An untyped Object can be iterated over using a 'for in' loop, giving you all of the properties/methods attached to the object, so you don't need to know them beforehand.

501 Method Not Found error on a javascript file - change name and it then works - why?

I finally figured it out - mod_security (an extension for apache) kept catching the word "cookie" in "jquery.cookie.js" and marking that file as a potential threat, and refused to serve it up.

Renaming the file & references to it ended up being necessary. I'd rather leave mod_security alone.



Related Topics



Leave a reply



Submit