I have the following code: <%= link_to(image_tag(...)) %>
The problem is that Rails sanitizes the images so it gets rendered as: <img src=... /> I could use html_safe, but that's painful and makes my code less readable. In Rails2 I could declare a whitelist such as: config.action_view.sanitized_allowed_tags = 'a', 'blockquote', 'img', ... But it doesn't seem to work anymore. Did I miss anything in the transition from Rails 2 to 3? -- 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 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/rubyonrails-talk?hl=en.

