pivotal/erector — Issue #26: Support Rails 3.1
Author: joevandyk
Created: 2011-12-31 21:17:12+00:00
State: open

Erector doesn't support Rails 3.1 yet, right? That's a shame, considering Rails 3.2 is due for release soon.

I'm using Rails 3.1 and am getting stuck on using Rails helpers (link_to, routes, etc). I get this error:

class Something < Erector::Widget
def content
link_to 'joe'
end
end

undefined method `link_to' for nil:NilClass
/bundler/ruby/1.9.1/bundler/gems/erector-cb01e061f9ed/lib/erector/rails3.rb:51:in `link_to'