This looks like it's Erubis misbehaving, not Haml. Are you sure it's a Haml issue?
On Thu, Dec 24, 2009 at 8:27 AM, Tobias <[email protected]>wrote: > > Hi! > > I have a strange bug here that I dont understand: > After starting the server and opening my page I get this > @output_buffer-Stuff that you see below. > Interestingly it does only appear once after starting the server. > And I believe it is a new error that shows since I installed the > rails_xss-Plugin. > > Can anyone describe the problem to me and maybe know a solution? > > Thanks > Tobias > > <code> > $ script/server > => Booting Mongrel > => Rails 2.3.5 application starting on http://0.0.0.0:3000 > ** Erubis 2.6.5 > => Call with -d to detach > => Ctrl-C to shutdown server > SQL (0.1ms) SET NAMES 'utf8' > SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 > > Processing DashboardController#show (for 127.0.0.1 at 2009-12-24 > 17:18:55) [GET] > Parameters: {"action"=>"show", "controller"=>"dashboard"} > User Load (85.6ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) > LIMIT 1 > CACHE (0.0ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) LIMIT > 1 > Rendering template within layouts/application > Rendering dashboard/show > Message Load (28.1ms) SELECT * FROM `messages` WHERE > (`messages`.to_id = 1) ORDER BY messages.created_at DESC > Rendered layouts/_navigation (295.6ms) > Membership Load (68.4ms) SELECT * FROM `memberships` WHERE > (`memberships`.user_id = 1) ORDER BY start_date DESC > SQL (41.6ms) SELECT count(*) AS count_all FROM `users` INNER JOIN > `friendships` ON `users`.id = `friendships`.friend_id WHERE > ((`friendships`.user_id = 1) AND ((friendships.accepted_at IS NOT > NULL))) > Rendered layouts/_header (180.7ms) > Rendered layouts/_navigation_top (4.3ms) > ** Erubis: src==<<'END' > @output_buffer = ActionView::SafeBuffer.new; > @output_buffer << (''.html_safe!); > __in_erb_template=true ;@output_buffer << ('<script type="text/ > javascript"> > Widget.embed({ Lorem Ipsum }) > </script>'.html_safe!);@output_buffer.to_sEND > Rendered layouts/_footer_feedback (0.9ms) > Rendered layouts/_footer_big (22.5ms) > ** Erubis: src==<<'END' > @output_buffer = ActionView::SafeBuffer.new; > @output_buffer << (''.html_safe!); > __in_erb_template=true ;@output_buffer << ('<script type="text/ > javascript">Lorem Ipsum</script> > '.html_safe!);@output_buffer.to_sEND > Rendered layouts/_analytics (13.2ms) > Completed in 882ms (View: 624, DB: 248) | 200 OK [http://localhost/ > dashboard] > </code> > > -- > > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
