Tuesday, July 20, 2010

NoSql on Rails with MongoDB

It is possible to implement non-relational database (without SQL) to store data on Rails.

The definition of NoSql

Heroku's cloud support for NoSql and why it matters?

Article that apparently got Rubyists notice about NoSql

And get started to implementing NoSql
1) Install MongoDB

2) Setup MongoDB for Rails 3

3) Examples and explanations by Ryan Bates
Railscasts MongoDB and MongoMapper

4) More info about MongoMapper

5) Thinking of using Heroku as your host?

There is also a cloud host for MongoDb, MongoHQ

Livereload

A great tool to prevent frequent reloads every time changes to Javascript, CSS, or HTML is made.

Friday, July 9, 2010

Feedzirra on Rails 3

Feedzirra is a gem that helps to easily parse RSS feed.

To get Feedzirra to work with Rails 3, we will need to do a few stuff.

We will include the required gem in the gemfile. Add,
gem 'nokogiri', '1.4.1'
group :after_initialize do
gem "feedzirra"
end
then run bundle install to make sure we have the gem good

At the config/boot.rb
Add Bundler.require :after_initialize below Bundler setup

Then we should be able to kick start using Feedzirra, refer to the links below for more info.