github.com

By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2

Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com

Rails 3, 4, 5, 6 config/application.rb config/environment.rb before the initialize! call (we don't usually edit this file)

makandra dev

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

This might eventually be fixed by Rails itself.\ Right now this is the way to have the rails_xss plugin...

Sometimes you want to fetch associations for an ActiveRecord that you already loaded, e.g. when it has deeply nested associations...

github.com

There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...

weblog.rubyonrails.org

Rails 3.0 has been underway for a good two years, so it’s with immense pleasure that we can declare...

github.com

Try our Apify gem which solves many problems you will be having.

github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

blog.peepcode.com

The Rails router has been written and rewritten at least four times2, including a recent rewrite for the upcoming Rails...

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...

makandra dev

Install gem and plugin sudo gem install parallel script/plugin install git://github.com/grosser/parallel_tests.git Adapt config/database.yml test: database: xxx_test<%= ENV...

sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...

See the lemonade descriptions. Unfortunately, the gem has a few problems: it does not work with Sass2...

When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...

This can happen during development when classes without automatic reloading are pointing to classes with automatic reloading. E.g. some class...

sudo gem install rails --version="=1.2.3" rails _1.2.3_ new-project-folder

sudo apt-get install unzip rake rails:freeze:edge RELEASE=2.2.2