Typo 4 dot 1

Posted by Daniel Tue, 27 Mar 2007 01:11:00 GMT

I started testing Typo 4.1 tonight. On my local testbed instance, things couldn't have gone more smoothly. I rake db:migrate'd, I script/server'ed, and poof it was updated. There is a

Web Service Response: => #XMLRPC::FaultException

with a trace of

NoMethodError (undefined method `to_i' for false:FalseClass):.//app/apis/movable_type_service.rb:100:in `getPostCategories' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/ lib/active_record/associations/association_proxy.rb:123:in `method_missing'

The article posted though...

There were also some deprecation warnings (boot.rb:39:Warning: require_gem is obsolete. Use gem instead.) and DEPRECATION WARNING: The inferred foreign_key name will change in Rails 2.0 to use the association name instead of its class name when they differ. When using :class_name in belongs_to, use the :foreign_key option to explicitly set the key name to avoid problems in the transition. See http://www.rubyonrails.org/deprecation for details. (called from 039_serialize_blog_attributes.rb:4)

Maybe someone with more time can look into these issues? If not, I'll get to them eventually.

Posted in ,  | 2 comments | no trackbacks

Platypus on Rails

Posted by Daniel Mon, 26 Mar 2007 02:48:00 GMT

Variations of this have been done before… but I couldn’t find a full blown example. In the meantime here’s the deal:

Dragging and dropping some files onto my Platypus script passes the file paths to a Ruby script that fires up WEBrick and runs a RoR app and then points the default browser to the right page. That’s as far as I’ve got this weekend.

Next, I’ll do what I need to process the files… and hopefully provide some nice UI in Rails… which is why I thought about doing it this way. We’ll see.

Anyway, firing up Rails was surprisingly tricky, but I knew from where to crib, so it wasn’t that bad. I chose WEBRick because it should keep the install to a minimum. If not, there’s always Mongrel.

Posted in ,  | no comments | no trackbacks