Archive for the 'about this site' Category

Guys, have you ever tried Rails.root. It gives same value as RAILS_ROOT. But now in edge rails it is modified and you can do much more with it.
You can use Rails.root at places like:

File.join(RAILS_ROOT, ‘public’, ‘images’)

as

Rails.root.join(’public’, ‘images’)

Both gives the same result.

Monday, December 1st, 2008 | No Comments

If you wrote/writing a rails plugin that need to have an entry in rails routing, you need not to ask your plugin users to make that entry in RAILS_ROOT/config/routes.rb manually any more. In the latest version of rails you can add your custum routes in your plugin config/routes.rb file. Rails will automatically load those routes.

Thursday, November 27th, 2008 | No Comments

The first ruby funday held on 22nd Nov 2008 in New Delhi, India. I presented on faceted search using ultrasphinx. I also gave a live demo there. Here are the slides:
Facet Searching using Ultrasphinx
View SlideShare presentation or Upload your own. (tags: sphinx ultrasphinx)

You can ask me if you have any doubt.

Tuesday, November 25th, 2008 | No Comments

The First Ruby FunDay was held at Impetus Technologies, Noida on 22nd November 2008.

There was a lot of Ruby and a lot of fun.
It was an exciting event with a good number of developers in attendance.

People from various companies already working on Ruby formed the largest part of the attendees. Then there were a few [...]

Tuesday, November 25th, 2008 | No Comments

Ever faced “terminate called after throwing an instance of ‘int’ ” error in RubyOnRails?
or
Specially on linux machine only not on windows.
Error occurred specially when dealing with some image handling, or with attachment_fu.
The cause of this error is image_science 1.1.3 . Add :processor => “Rmagick” to has_attachment options and get rid of this problem. [...]

Monday, November 24th, 2008 | No Comments