There is a bug in ActiveRecord 2.3.x that leads to changes in nested forms getting lost. class Project < ActiveRecord...
This works well in the simplified case, when your link disappears after it was clicked. Let link_to_remote behave...
You probably know that you can use CSS selectors to match against elements and their attributes, such as:
Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...
When you accept a table in your Cucumber step definition, that table object will have the cryptic type Cucumber::Ast...
January has been a very bad month for Ruby on Rails developers, with two high-severity security bugs permitting remote...
Defining one callback several times in the same class behaves different in ActiveRecord and ResourceController. While in ActiveRecord the callbacks...
Consul 0.6.1+ gives your Power class a number of static methods that behave neutrally in case Power.current is nil. This...
Consul 0.6.1+ gives you a way to dynamically access and query powers for a given name, model class or record...
Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...
If you worked with a system Ruby before switching to RVM, this system Ruby will be in your way when...
Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...
If you use Tempfile and pass your own filename containing an extension, it will just be consumed by the Tempfile...
Use Socket.gethostname. So for a machine whose hostname is "happycat", it will look like this: >> Socket.gethostname => "happycat" That should work...
While you are probably using will_paginate to paginate ActiveRecord scopes, it can actually paginate plain Ruby arrays. The resulting...
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...
I’ve worked on huge applications in Ruby and Rails before. I very much want to believe in DCI, but...
You can define methods in any example group using Ruby's def keyword or define_method method: describe "example" do...
When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...
If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...
jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...
This article contains: Making ‘git diff’ wrap long lines Set a global proxy Clone only a specific branch
Great solution in a GitHub issue.
When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...