search for: safe_method

Displaying 2 results from an estimated 2 matches for "safe_method".

2010 Aug 17
3
Rails 3 flash message problems
...content_tag(:p, html_escape(flash[msg.to_sym])), :class => "message #{msg}") unless flash[msg.to_sym].blank? end messages end I am not sure how to make it html_safe so that Rails 3 renders it properly. No problems with Rails 2.3.8, but I had to mark the entire method "safe_method" using rails_xss plugin. Is there a rule to doing this kind of view sanitization? Thanks. Bharat -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email...
2009 Oct 14
6
Combining rails intrAnet and public site.
Hello, everyone! I was wondering if somebody has some insight on this issue. [h]A little background:[/h] I work for a midsize electronic manufacturing company with 2 people in IT dept - a network admin and a developer (me). We''ve been using rails to migrate from an old dBase and VB based system to build internal company IntrAnet that does things like label printing, invetory control,