Tag Archives: rails

The best solution to this warning: Giving a path to render :action is deprecated.

I for one welcome this change and deprecation warning.

Posted in open source, programming, Ruby programming, web programming | Also tagged , , , , , | Leave a comment

Yet another good reason to keep a gemset per project

So, if you still keep all your gems in ‘system’, you should seriously consider switching to rvm gemsets per project.

Posted in open source, programming, Ruby programming, software engineering | Also tagged , , , , | Leave a comment

Having a scope called `parents` breaks acts_as_nested_set

I started to get this weird error with my categories today. It was sort of ridiculous because I had only changed my scope name from ‘parent’ to ‘parents’! That was the problem. acts_as_nested_set, v1.4.4, breaks if you name a scope ‘parents.’ You will get an error like this: undefined method `const_defined?’ for #<Category:0x112ccfdb8>

Posted in open source, Ruby programming, web programming | Also tagged , , | Leave a comment