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...
All examples here for deploy RoR application with unicorn, staging machine (where we deploys) available via ssh by ssh_key...
Install capistrano: add to Gemfile group :development do gem 'capistrano' gem 'rvm-capistrano' end Then cd to project root folder...
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
Best results in other decks
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
Most of the time, when you are interested in any log output, you see the logs directly on your console...