Ruby net/sftp problem

If you're ever using net/sftp, make sure you have given absolute paths for both the target and source directories (including the target's file name -- i.e. don't just pass in the path to the folder you want to sftp to).

If you don't, you'll get something like the very nondescript message below:

Net::SFTP::StatusException open /home/hedgehog (4, "failure")

500 Internal Error: Rails 2.0

I’m playing around with Rails 2.0 for the first time here at work.  I had already done my modeling and such, and moved on to create my first view when I run into this:

 

 

I’m a bit confused by this because it doesn’t look *anything* like the default 500 error page that is included with rails.  So I check that my route is set properly – it is.  Then I check my logs and see:

 

  Status: 500 Internal Server Error

  A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase of at least 30 characters" } in config/environment.rb

 

Ok, simple enough; I copy that into my environment.rb file.  Voila, it works.  But if you need it by default, why not include it by default and have people uncomment it if they make changes that require such?? Jesus.

 

BTW: This is what the 500 message is supposed to look like

Welcome back, Firefox 2.0

 

I’ve spent the past couple weeks using FF3 on my win xp machine – after about the 40th crash, though, it just becomes unreasonable to try any more crash prevention fixes; enough is enough.