View Andy Lo-A-Foe's profile on LinkedIn

Rails 0.14.2, Typo upgraded to trunk

Whoop, upgrade to Rails 0.14.2 and Typo trunk. Everything seems to be working. Fingers crossed.

"dynamic constant assignment", what?

So I upgraded my development environment to edge Rails. Testing on of the production apps turned up an interesting error:

compile error
…/app/views/domains/_MX_form.rhtml:-1: dynamic constant assignment
MX_form = local_assigns[:MX_form] if local_assigns.has_key?(:MX_form)

The Rails code:

<%= render :partial => "#{@record_type.name}_form" %>

This code worked fine under Rails 0.13.1, huh? Turns out if the name attribute is uppercase Ruby will complain about a [...]