Showing posts with label rails. Show all posts
Showing posts with label rails. Show all posts

Sunday, December 28, 2008

Merb gets merged into Rails 3

Ruby on Rails and Merb team decided to merge both of the frameworks into a singular web framework in Rails 3. The two frameworks have much in common and share code in a variety of places.

Please click here to find the detailed post by DHH.

Thursday, August 30, 2007

How to load selective fixtures to db in rails

All of you must know how to load fixtures to db

rake db:fixtures:load

To load a subset of your fixtures to your projects db

rake db:fixtures:load FIXTURES=users,stores

Tuesday, August 28, 2007

Star rating in ruby on rails

Recently I needed to implement star rating system for one of my project I am working on.

If you are not familiar with a star rating system, its simply a method of voting using (usually) 5 stars in a row, which will change colour as you hover over them indicating the level at which to rate something. You may think a simple rollover would accomplish this but difficulty arises because as you rollover each star it should stay highlighted while you light up the next one and so on until the end of the row of stars.

click here to find more details>>