Ruby on rails 如何在Rails5的异常处理程序gem中删除背景?
我正在尝试将此宝石添加到我的网站 这是我的config/application.rbRuby on rails 如何在Rails5的异常处理程序gem中删除背景?,ruby-on-rails,ruby-on-rails-5,exceptionhandler,Ruby On Rails,Ruby On Rails 5,Exceptionhandler,我正在尝试将此宝石添加到我的网站 这是我的config/application.rb config.exception_handler = { dev: true, db: false, #-> defaults to :errors if true, else use :table_name email: false, #-> need to integrate layout
config.exception_handler = {
dev: true,
db: false, #-> defaults to :errors if true, else use :table_name
email: false, #-> need to integrate
layouts: {
'404' => 'application',
'400' => 'application',
'500' => 'application'
},
}
这是我的应用程序/views/exception\u handler/exception/show.html.erb
<% provide(:title, 'Error') %>
<div class="jumbotronsignup nopadding">
<div class="container nopadding">
<div class="row">
<% if /^(5[0-9]{2})$/ =~ @exception.status.to_s %>
<div class="col-md-4 col-md-offset-4 labelcolor padding2">
<h3><%= "#{@exception.status} Error - #{details[:name]}" %></h3>
<%= details[:description] %>
<div class="thumbnail">
<strong>Our developers have been notified - we're working on it!</strong>
</div>
</div>
<% else %>
<div class="col-md-4 col-md-offset-4 labelcolor padding2">
<div class="thumbnail">
<strong><%= content_tag :div, details[:description], class: "message" %></strong>
</div>
</div>
<% end %>
</div>
</div>
</div>
我们的开发者已经得到通知-我们正在努力强>
我没有更改app/controllers/exception\u handler/exception\u controller.rb和app/helpers/exception\u handler/application\u helper.rb
我不知道为什么会显示背景图像
如果我删除app/assets/stylesheets/exception\u handler/error.css.erb的内容,那么图像将消失,内容将按我的需要显示
我应该在哪里改变以消除这种图像
你有我可以看的回购协议吗?我会为你做的-rpeck@frontlineutilities.co.uk如果您仍然需要特定帮助:)