git ls-files --deleted
To restore a deleted file (assuming the D is not yet commited)
git checkout where/the/file/was.ext
git ls-files --deleted
git checkout where/the/file/was.ext
ActionController::Assertions::SelectorAssertions#assert_select_rjs don't know about :redirect_totest_helper.rb then I can assert by :redirect_to nowOnly get, head, post, put, and delete requests are allowed.If you get this while/after editing your routes, then you'll need to restart your local server. Thanks to this guy.
Only a Sith deal in absolutes
Do, or do not. There is no try.
can't activate rubyforge (= 0.4.5), already activated rubyforge-1.0.0] (Gem::Exception)
jorrel@helen ~ $ sudo gem uninstall rubyforge
Select gem to uninstall:
1. rubyforge-0.4.4
2. rubyforge-0.4.5
3. rubyforge-1.0.0
4. All versions
> 1
Successfully uninstalled rubyforge-0.4.4
jorrel@helen ~ $ sudo gem uninstall rubyforge
Select gem to uninstall:
1. rubyforge-0.4.5
2. rubyforge-1.0.0
3. All versions
> 1
Successfully uninstalled rubyforge-0.4.5
jorrel@helen ~ $ gem list | grep rubyforge
rubyforge (1.0.0)
git stash
git stash clear
git reset --hard

Framework that failed to load:
Vendor directory: /path/to/vendor/rails
Error message:
Anonymous modules have no name to be referenced by
Exception class:
ArgumentError
Googlebot/2.1 (+http://www.googlebot.com/bot.html)
request.user_agent =~ /googlebot/i
rsync -P --rsh=ssh from_machine:/path/to/source.file destination/path
-P is the same as '--partial --progress'
sudo mkdir /usr/share/fonts/truetype/custom
sudo mv Monaco_Linux.ttf /usr/share/fonts/truetype/custom/
sudo fc-cache -f -v
class ApplicationController < ActionController::BaseEdge rails has its own HttpAuthentication::Basic module:
htpasswd :user => 'username', :pass => 'secret'
end
class ApplicationController < ActionController::Base
USERNAME, PASSWORD = 'username', 'secret'
before_filter :basic_http_authentication
private
def basic_http_authentication
authenticate_or_request_with_http_basic do |username, password|
username == USERNAME and password == PASSWORD
end
end
end
export PATH=$PATH:/var/lib/gems/1.8/binsudo dpkg-reconfigure xserver-xorg