Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...
The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...
Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:
Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...
Removing features and merging those changes back can be painful. Here is how it worked for me.\
To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...
jQuery UI's date picker and date time picker doesn't work on touch interfaces. Solution 1: Use Mobiscroll
After my update from MacOS X 10.6 Snow Leopard to 10.7 Lion the search function in Apple Mail stopped working...
Our rcov:all task for aggregated RSpec/Cucumber coverage was overhauled extensively. Among other things it now works for Rails 2...
Association named 'variations' was not found; perhaps you misspelled it? I just was hunting down a strange error with this...
[1,2,3,4].sample # => e.g. 4 If you'd like to cheat and give different weights to each element...
Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...
You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...
Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...
Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...
RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...
To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
The most common use case for Ruby's #collect is to call a method on each list element and collect...
Calling #gsub on a string that was previously marked as #html_safe will lead to unexpected behavior. E. g. backreferences...