Forum: Ruby on Rails Sanitize add more tags

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-10-18 18:45
I have added the following snippet to environment.rb:

Rails::Initializer.run do |config|
  config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td', 'th'
end

But it doesn't work, my tags still get removed. Any idea why it is
happening?
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-10-18 18:57
FIXED: I had to restart the server, even in development mode.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-10-18 19:02
(Received via mailing list)
On Oct 18, 5:57 pm, Fernando Perez <rails-mailing-l...@andreas-s.net>
wrote:
> FIXED: I had to restart the server, even in development mode.

Changes to environment.rb and similar are never picked up without a
restart.

Fred
This topic is locked and can not be replied to.