erector 0.9.0 with rails 3.2.8

24 views
Skip to first unread message

Heather Moore

unread,
Nov 18, 2012, 7:38:19 PM11/18/12
to ere...@googlegroups.com
I started a brand new app (rails 3.2.8) with this structure: http://erector.rubyforge.org/rails.html#pagelayoutinheritance and I'm stuck on this error:

Started GET "/" for 127.0.0.1 at 2012-11-18 14:16:10 -0800
Connecting to database specified by database.yml
Processing by WelcomeController#show as HTML
  Rendered welcome/show.html.rb (5.0ms)
Completed 500 Internal Server Error in 11ms

ActionView::Template::Error (uninitialized constant Views::Layouts::Page):
    1: class Views::Welcome::Show < Views::Layouts::Page
    2:   def initialize
    3:     super(:page_title => "SHOW")
    4:   end
  app/views/welcome/show.html.rb:1:in `<top (required)>'

The stack shows that this is blowing up in the template_handler:

app/views/welcome/show.html.rb:1:in `<top (required)>'
erector (0.9.0) lib/erector/rails/template_handler.rb:5:in `call'
actionpack (3.2.8) lib/action_view/template.rb:268:in `compile'
actionpack (3.2.8) lib/action_view/template.rb:244:in `block in compile!'
<internal:prelude>:10:in `synchronize'
actionpack (3.2.8) lib/action_view/template.rb:232:in `compile!'
actionpack (3.2.8) lib/action_view/template.rb:144:in `block in render'
activesupport (3.2.8) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.8) lib/action_view/template.rb:143:in `render'
actionpack (3.2.8) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
actionpack (3.2.8) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in `block in instrument'

Here's the bare-bones code:

Any ideas about what's going on here?

Thanks,
Heather
Reply all
Reply to author
Forward
0 new messages