ruby on rails posts.

Installing a monitored Mongodb, Ruby 1.9, Nginx stack with Passenger on Ubuntu Linux

In the spirit of nosql, today I am going to show you how to install a Rails stack on Ubuntu using Mongodb, Nginx, Passenger, Ruby 1.9 and all nicely monitored using monit, my monitoring tool of choice (why don’t I use god I hear you ask? => monit = easy maintenance and less resource heavy). [...]

Installing Ruby on Rails and MultiRuby on Snow Leopard

Below are instructions on how to install a multi-ruby system, Ruby on Rails and everything you need to run a basic Ruby on Rails setup. Running the RVM gem (which we show how to install) allows you to easily run multiple Ruby versions and switch seamlessly between them. First steps: – Checking your Architecture Make [...]

Rails 3.0: Mount Multiple Apps as Engines

Since last week I have been working on upgrading a major project from Rails 2.3.5 to Rails 3.0.0.beta and also on moving other projects to use the latest version of bundler. Getting all to work was not easy, but this gave me a chance to look into the rails initialization code in detail. Based on [...]

Mustache And Rails3

Mustach Rails3 If your UI needs to hold state and do a little more then just returning a html string and updating a dom element(not that cool); then json is the way to go. Javascript is powerful so it can just receive the json and it can handle the state of the UI. We wanted [...]

Quick install for ruby 1.9.1 and Rubygems 1.3.5 from source on Ubuntu.

Here’s a quick howto guide on installing Ruby 1.9.1, Rubygems 1.3.5 and dependencies on Ubuntu. The apt-sources version of Ruby is not the latest version, as such it is better to compile everything from source. First make sure your package sources are up to date and you have build essential and zlib1g-dev installed: sudo apt-get [...]

LRUG (February 2010)

These are the slides of my presentation at LRUG lightening talks 2010. The talk was about a brief introduction of our latest application birdpie.com. Birdpie View more presentations from anupnarkhede. Here are few random snaps from the evening.

MongoMapper state machine? just use active model's state machine

MongoMapper Active Model State Machine So you want a state machine for you mongo mapper? Active model now comes with a nice looking state machine; I really like the multi parameters you can send to the on_transition methods; class StateMachineSubject state_machine :chetan_patil, :initial => :sleeping do state :sleeping state :showering state :working state :dating event [...]

Sitemap Generator for Ruby on Rails Applications

Follow these steps if you wish to add a sitemap.xml generator to a rails application. The idea is to generate a sitemap.xml for selected records from the database, in this case they are Articles and Categories. This sitemap is pinged to popular search engines like google, yahoo, bing and ask. Step 1: Add a sitemap.rb [...]

Birdpie Launched on Rails 3.0

We have just released Birdpie, a small twitter application for storing and managing the urls that you tweet. Birdpie utilises Twitter auth in order to simplify the sign up process and is Dynamic50′s first experimentation with Rails 3.0 pre.Once a user is signed up, Birdpie fetches all previous bookmarks (or as many allowed by Twitter). [...]

3D Secure Transactions using SagePay Gateway and ActiveMerchant Plugin

Introduction What is 3D secure? 3D Secure is a latest initiative for fraud prevention launched by Visa and MasterCard. 3D Secure adds additional password authentication step to complete the online transactions. A detailed introduction is available at http://www.sagepay.com/developers/industry_knowledge/3d_secure.asp. This tutorial is a guide to set up a Ruby on Rails test environment for 3D Secure [...]