...sub directories, make sure to add -r features to the standard Cucumber options. In Rails apps, Cucumber options are likely to be stored in config/cucumber.yml...

Here is how to do it without a server-side component (like a Rails application). Use JavaScript's navigator.language (real browsers and IE11+) and navigator.userLanguage (old IEs).

Obviously, this leads to problems when comparing strings: "Über".downcase == "über" => false In Rails you can use ActiveSupports' multibyte chars to avoid that problem. It gives you a wrapped...

We have two redundant auto-failover FreeBSD load balancers for our Ruby on Rails hosting setup that are connected to the Internet backbone with a 10GE interface pipe. All...

...other components are redundant, too. Interested? See http://railscomplete.de

...cleaner will take care of this. See How to set up database_cleaner for Rails with Cucumber and RSpec...

github.com

Good reference how to build bootstrap forms with simple_form.

You installed some gems that install a binary (like bundle, rake or rails) with code that only works with modern Rubygems versions You downgraded Rubygems to an older...

...require 'mathn' call (usually by wrapping Bundler.require) like this: # config/application.rb MathnWorkaround.intercept do Bundler.require(:default, Rails.env) if defined?(Bundler) # If you require "mathn" manually, put it inside this block. end

...to your site and still have the serialization of such objects in their session. Rails will then try to rebuild the user's session and raise an error out of...

tableplus.io

...other schema names when working with a (legacy) application's database. Note that for Rails applications, dropping and recreating the database itself is usually fine in development. You can use...

...You can "fix" this in multiple ways: Update your drivers on your machine with RAILS_ENV=test rake webdrivers:chromedriver:update Ignore the driver update-URL in your VCR configuration...

...and see if VCR complains: WD_CACHE_TIME=1 bundle exec cucumber Note: Newer Rails versions come with the webdrivers gem automatically...

solnic.eu

...simple definition of meta-programming macros like the has_many that you know from Rails. Modularity also lets you organize large models into multiple source files in a way that...

makandra dev
github.com

...be docked to I18n (configured explicitly on plain Ruby, or use .yml files for Rails): "one & two".convert_miscellaneous_characters # => "one and two" "my words".convert_miscellaneous_html_entities...

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those strings will get some default encoding, depending on how they...

developer.mozilla.org

...class: 'image-preview' The image_tag will either contain an existing image (rendered by Rails) or be overwritten by Unpoly with an image preview. Testing Here's a Cucumber step...

...using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not add a fingerprint hash to its asset paths by default. This means...

makandra dev
dev.mensfeld.pl

Enumerable#grep_v excludes from the result set. It's similar to Rails' #reject: ['foo', 1, 'bar', {}].grep String # => ['foo', 'bar'] ['foo', 1, 'bar', {}].grep_v String...

...you set both a record's association and that association's foreign key attribute, Rails does not realize you are talking about the same thing. The association change will win...

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information about each part of a request/response cycle.

# or without agent: install-gems-remotely me@my.server.com When you call it from a rails directory, it uploads your Gemfile, Gemfile.lock as well as the gemspecs of all vendored gems...

...encode such strings. You probably know Quoted Printable from e-mail bodies appearing in Rails logs, where =s become =3Ds in URLs, or where long lines are split up and...

There are several options, but most of them are impractical. The best way is to use the :ruby filter:

...you cannot change (e.g. because they are inside a gem, spanning multiple versions of Rails and RSpec), you can explicitly allow the deprecated syntax. Fix Inside spec/spec_helpber.rb, set rspec-expectations...

Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the following example, you may not longer use collection.make.