This tutorial is about setting up environment for RubyOnRails on Ubuntu 14.04. First of all, update & upgrade your system:

Suppose we have some model and we want to localize it, first of all we need to now i18n_key...

wiki

All examples here for deploy RoR application with unicorn, staging machine (where we deploys) available via ssh by ssh_key...

robmclarty.com

Install capistrano: add to Gemfile group :development do gem 'capistrano' gem 'rvm-capistrano' end Then cd to project root folder...

wiki

Assume your database.yml file looks like this: {: .yaml} development: adapter: postgresql host: localhost encoding: unicode database: proj_development

Add repository and install Postgresql: ^ sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list" ^ wget --quiet -O...

class CreateFakes < ActiveRecord::Migration def change create_table :fakes do |t| t.decimal :float_value, :precision => 4, :scale => 3 end

Add in Gemfile: group :development, :test do gem 'rspec-rails' gem 'spork-rails' end group :test do gem 'capybara'

If some of your scripts don't work with turbolinks, you should do the following: ready = -> #your code here