robots.thoughtbot.com

We are changing our name from Hoptoad to Airbrake. You see, some folks much larger than us reached out and...

With gem dependency it is possible to check the dependencies for your gem before you install it.

Regular expressions can have something called "zero-width look-behind assertions". This means that you want a pattern to be...

stackoverflow.com

When you double-tap a string of text on an iPhone or iPad a complicated context menu for copying and...

When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby

The step definition below allows you to write: Then I should see a link labeled "Foo" But I should not...

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

Here is how to switch your Selenium to Chrome: Make sure you've got a recent version of chromedriver in...

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...

apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String

If you have to build a filename (e.g. for use in downloads) that contains user input, keep in mind that...

My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...

If you want to use a helper_method my_helper_method inside a model, you can write ApplicationController.helpers.my_helper...

gist.github.com

When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...

makandra dev

This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...

devnet.jetbrains.net

To activate the shell command, go to Tools > Create Command-line Launcher and confirm. Now you have mine as bash...

qatechnotes.blogspot.com

If you encounter above mentioned failiure message after installing the ruby-debug gem then you have to explicitly require linecache...

When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0

shopify.com

Most web applications contain several examples of state machines, including accounts and subscriptions, invoices, orders, blog posts, and many more...

yehudakatz.com

Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...