Blog

Currently showing blog posts in June 2013. For all blog posts, please click here.

Powder – Changing RAILS_ENV

powder env RAILS_ENV staging

For IE – Precompile assest for IE as it doesn’t support more than 30 files.

For Staging

RAILS_ENV=staging bundle exec rake assets:precompile

For development

RAILS_ENV=development bundle exec rake assets:precompile

powder restart

Read More

Ruby Basics

Basics of Ruby on Rails


1. Installing rails

# gem install rails
$ rails --version


2. Creating your First new app

$ rails new first_app


3. Configure a MySql Database

development:
  adapter: mysql2
  encoding: utf8
  database: blog_development
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock

railsrorruby

Read More