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?
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?
FIXED: I had to restart the server, even in development mode.
On Oct 18, 5:57 pm, Fernando P. [email protected]
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs