November 2009
1 post
4 tags
Solving the problem of non-working key forwarding...
After I upgraded my Mac to Snow Leopard, Capistrano deployments with key forwarding stopped working. I started getting a following error:
Permission denied (publickey).
My fellow Bambinos enlightened me that key forwarding was switched off by default in Snow Leopard. The solution was to change the following two lines in /etc/ssh_config:
#Host *
#ForwardAgent no
to the following two...
August 2008
4 posts
How to mock Rails view helpers with RSpec
If you want to stub view helper method in some view spec, you can do the following:
@controller.template.stub!(:helper_method_name).with(:some_args).and_return("some result")
HHGTTG online →
How to setup ExceptionNotifier to send email... →
How to setup God to send email notifications using...
Here is, how to setup God to send email notifications using a Gmail account.
Step 1:
gem install tlsmail
Step 2:
Modify the following code and add it to your God config
—-
require ‘tlsmail’ Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) God::Contacts::Email.message_settings = {:from => ‘my_user@gmail.com’} God::Contacts::Email.server_settings = { :address...