breaks with rails v2.3.8 + rails_xss plugin

9 views
Skip to first unread message

sharad

unread,
Jun 1, 2010, 5:07:32 PM6/1/10
to Rails Widgets Users
I am using haml and after upgrading to rails v2.3.8 and installing
rails_xss to fix any XSS holes in app, the tabnav fails to render with
following error:

ActionView::TemplateError (class or module required) on line #57 of
app/views/layouts/application.haml:
54: %span= link_to 'Profile',
user_profile_path(current_user.user_profile.id)
55: %span= link_to 'Logout', logout_path
56: #main_nav.prepend-4
57: = tabnav :main
58: .support_data
59: -if production_env?
60: = "SUPPORT: #{SUPPORT_PHONE}"

haml (3.0.3) [v] lib/haml/helpers/action_view_mods.rb:30:in
`is_a?'
haml (3.0.3) [v] lib/haml/helpers/action_view_mods.rb:30:in
`output_buffer='
haml (3.0.3) [v] rails/./lib/haml/helpers/xss_mods.rb:109:in
`with_output_buffer'
haml (3.0.3) [v] lib/haml/helpers/action_view_mods.rb:90:in
`capture'
app/views/layouts/application.haml:57:in
`_run_haml_app47views47layouts47application46haml'


I am not sure if this is a rails-widgets issue or haml issue. Any clue?

Paolo Donà

unread,
Jun 2, 2010, 2:39:30 AM6/2/10
to railsw...@googlegroups.com
I'm not using 2.3.8 and yaml so I don't know..
Paolo

> --
> You received this message because you are subscribed to the Google Groups "Rails Widgets Users" group.
> To post to this group, send email to railsw...@googlegroups.com.
> To unsubscribe from this group, send email to railswidgets...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/railswidgets?hl=en.
>
>

--
Paolo Dona' | http://paolodona.com
I check email twice a day, if it's urgent call me. (see http://bit.ly/35dyL)

Reply all
Reply to author
Forward
0 new messages