When running Wagn on Debian Lenny, with Ruby 1.9.1p378, Apache2, mod_rails (Passenger 2.2.11)
It appears when something isn't cached yet by for instance running it in Ruby 1.8, the error appears.
All is fine when running under Ruby 1.8.7 + Passenger 2.2.9.
Also, when running the same production site from console with either Webrick or Mongrel, everything is alright too.
The follow error occurs when viewing pages:
Processing CardController#show (for 82.176.231.90 at 2010-03-18 15:54:23) [GET]
Parameters: {"id"=>"Home"}
WAGN: per request setup
Rendering template within layouts/application
ActionView::TemplateError (can't convert nil into String) on line #5 of app/views/views/_open.rhtml:
2: <%= slot.header %>
3: <% end %>
4:
5: <%= slot.wrap_content( slot.render(:expanded_view_content) ) %>
6:
7: <%= slot.notice %>
8: <% if card.ok?(:comment) %> <%#and !card.hard_template %>
app/models/card/basic.rb:29:in `block in table_of_contents'
very strange. we haven't tried running on ruby 1.9 yet-- as soon as I get a chance to do that I'll see if I can reproduce this error. thanks for letting us know!
--Lewis Hoffman.....Thu Mar 25 10:53:23 -0700 2010
My workaround is as follows:
app/models/card/basic.rb:
line 30, replace + $MATCH
with + $&
btw; The issue is the same for nginx with passenger.
--Sickboy.....Sat Apr 10 02:10:48 -0700 2010
ruby 1.9 is fully supported as of wagn 1.8
--Ethan McCutchen.....Sun Mar 25 03:56:23 +0000 2012