@output_buffer Error in Console

11 views
Skip to first unread message

Tobias

unread,
Dec 24, 2009, 11:27:24 AM12/24/09
to Haml

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>

Nathan Weizenbaum

unread,
Dec 24, 2009, 2:26:48 PM12/24/09
to ha...@googlegroups.com
This looks like it's Erubis misbehaving, not Haml. Are you sure it's a Haml issue?


--

You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.



Tobias

unread,
Dec 27, 2009, 5:37:42 AM12/27/09
to Haml


On 24 Dez., 20:26, Nathan Weizenbaum <nex...@gmail.com> wrote:
> This looks like it's Erubis misbehaving, not Haml. Are you sure it's a Haml issue?

I am not shure what creates the issue.
I solved it now by removing all .erb-Partials an all html/erb-Code
from my haml-partials.

Thanks
Tobias

> On Thu, Dec 24, 2009 at 8:27 AM, Tobias <tobias.jord...@googlemail.com>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 onhttp://0.0.0.0:3000

> > haml+uns...@googlegroups.com <haml%2Bunsu...@googlegroups.com>.

Reply all
Reply to author
Forward
0 new messages