Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何在Rails5的异常处理程序gem中删除背景?_Ruby On Rails_Ruby On Rails 5_Exceptionhandler - Fatal编程技术网

Ruby on rails 如何在Rails5的异常处理程序gem中删除背景?

Ruby 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/application.rb

 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如果您仍然需要特定帮助:)