Moving to Edge Rails

Posted by Daniel Thu, 09 Aug 2007 01:49:00 GMT

Some of this might be out of date, but the simplest critical path seems to be as follows:
  1. Create a throw away Rails project
  2. Freeze to Edge
  3. Create a new project using Edge to ensure you have the latest environment files etc.
  4. Add the missing ActiveResource gem
  5. Live on the Edge

Command line stuff looked a bit like this.

For the search engines... the error I was getting (under Mongrel) was
Exiting
/Users/daniel/temp/aumeatur/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: warning: already initialized constant OPTIONS
/Users/daniel/temp/aumeatur/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: undefined method `options' for []:Array (NoMethodError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /Users/daniel/temp/aumeatur/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /Users/daniel/temp/aumeatur/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /Users/daniel/temp/aumeatur/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /Users/daniel/temp/aumeatur/vendor/rails/railties/lib/commands/server.rb:39
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from script/server:3

Posted in , ,  | no comments | no trackbacks

Mac Subversion client: ZigVersion!

Posted by Daniel Wed, 08 Aug 2007 19:43:00 GMT

If you work with designers and others on projects and you store all the work artifacts in Subversion (which a lot of folks consider a requirement for safety and agility) have a look at ZigVersion. It is by far, the best Mac client I’ve used. Getting started is painless and common functions are easy and quick.



I did experience a crash ro two with an imported working copy, but that might be something strange in that working copy. We’ll see.

I do wish there was a simplified interface for the truly non-savvy that eliminated some of the choices and options. Something that totally centers around getting the project, and updating it (whether by adding or modifying. Acts which should be transparent to that type of user.) But short of that, this is a nice clean client, and I’ll be testing it with my wife this evening.

Posted in , , ,  | no comments | no trackbacks

IRB history and completion

Posted by Daniel Wed, 08 Aug 2007 14:19:00 GMT

Who knew? Why & Others did apparently.
require 'irb/completion'
require 'irb/ext/save-history'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB.conf[:SAVE_HISTORY] = 200
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
Give it a shot by adding those lines to your .irbrc file (home directory). Try typing Date:: and hitting tab twice... Note that this will break the existing filesystem completion, so e.g. File.open('..tab..> will no longer work.

Posted in  | no comments | no trackbacks