Suppose we have some model and we want to localize it, first of all we need to now i18n_key...
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'
Best results in other decks
api.rubyonrails.org
When working with file uploads, we sometimes need to process intrinsic properties like the page count or page dimensions of...
Postgres supports multiple built-in range datatypes: int4range int8range numrange tsrange (range with timestamp without timezone) tstzrange (range with timestamp...