ActiveRecord models localization

Posted About 10 years ago by konjoot.

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

Rails migration add float point field with scale and precision

Posted Over 10 years ago by konjoot.

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

Rspec + Capybara + Rails4 + Spork (intergation tests setup with selenium and poltergeist)

Posted Over 10 years ago by konjoot.

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