Gave a shot to the new Bundler 1.4.0RC1 during the weekend and found out it now supports gem installation...
File uploads with .png are +10 times slower than using .jpeg or .gif. # Bad post :create, { :property_id => property.id,
TL;DR: If using :group => :some_field you might want to :order => 'NULL'. According to the man By default, MySQL...
As you know, time zones make stuff a bit more difficult but are necessary. A time-zoned record is converted...
require 'ruby-prof' # you don't need this if you have ruby-prof in your Gemfile You can set one...
Add to the end your .bash_profile export PATH="./vendor/bundle/bin:$PATH" Also add alias bi="bundle install --path vendor/bundle --binstubs...
When simply checking equality or truthiness then Instead of: it "should have role set to admin" do @user.role.should eql('admin...
Go to lib folder and use bundler to generate main files for a gem: $ bundle gem test_gem create test...
Reading the current time Don't use Time.now as it's broken when using time zones. \ Instead, use Time.current, DateTime.current...
I often see long before blocks with lots of should_receive...
...and_return inside. Remember that before blocks are about...
No results found in other decks.