Cloud Computing: The Digital Shift 2.0 – Understanding the Current Market Trends

Ruby on Rails

Working with multiple ruby versions on same server

click for original postNice post by Michael Greenly I recently changed how I’m handling multiple simultaneous Ruby installations and I’d like to share. What I needed was to make it convenient to switch between the system provided packages and specific, from source, installations. After some experiments I decided to use ‘update-alternatives’ to do it. Here’s …

Working with multiple ruby versions on same server Read More »

Ruby 1.8.7 and rails installation on ubuntu interpid

Execute following commands in order to install ruby and rails. sudo apt-get install build-essential Below command will install all necessary packages.if you dont want any remove it from command. sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby ruby1.8-dev irb1.8 libdbd-mysql-perl libdbi-perl libmysql-ruby1.8 libmysqlclient15off libnet-daemon-perl libplrpc-perl libreadline-ruby1.8 libruby1.8 mysql-client-5.0 mysql-common mysql-server-5.0 rdoc1.8 ri1.8 ruby1.8 irb libopenssl-ruby …

Ruby 1.8.7 and rails installation on ubuntu interpid Read More »

Awesome: Working with the Rails console and all the tricks

Testing your active record methods using script/console If you are using windows, you start the console by using this command: ruby script\consoleLinux: ./script/console Just use the following command whenever you make changes to your model objects: reload! Instead of accessing your MySQL database with mysql -u -p You can instead do script/dbconsole and if you …

Awesome: Working with the Rails console and all the tricks Read More »

using rails acts as taggable on plugin

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts. Plugin Installation script/plugin install git://github.com/mbleigh/acts-as-taggable-on.git Gem Installation gem install mbleigh-acts-as-taggable-on –source http://gems.github.com Auto Installinclude following line in environment.rb config.gem “mbleigh-acts-as-taggable-on”, :source => “http://gems.github.com”, :lib => “acts-as-taggable-on” Post Installation (Rails)1. script/generate acts_as_taggable_on_migration2. rake db:migrate UsageAdd following line in your model for which …

using rails acts as taggable on plugin Read More »

Specify rails version to use while creating rails project

I was having rails versions installed ranging from rails 1.2.3 to 2.3and i wanted to create rails project that uses rails 2.1.0.I was got stucked with this problem & finally got solutionYou can specify rails version to use while creating new rails application rails _2.1.0_ simple_blog The above command will create simple blog application that …

Specify rails version to use while creating rails project Read More »