Sha256: 50e4378898358c4dbf56e71c71e698fe06c4236fe8b90d7f20f0b1260ef53531

Contents?: true

Size: 1.78 KB

Versions: 1

Compression:

Stored size: 1.78 KB

Contents

<div id="container">
  <div id="header-container">
    <img src="/images/merb.jpg" />
    <!-- <h1>Mongrel + Erb</h1> -->
    <h2>pocket rocket web framework</h2>
    <hr />
  </div>

  <div id="left-container">
    <h3>Exception:</h3>
    <p><%%= params[:exception] %></p>
  </div>

  <div id="main-container">
    <h3>Why am I seeing this page?</h3>
    <p>Merb couldn't find an appropriate content_type to return,
      based on what you said was available via provides() and
      what the client requested.</p>

    <h3>How to add a mime-type</h3>
    <pre><code>
      Merb.add_mime_type :pdf, :to_pdf, %w[application/pdf], &quot;Content-Encoding&quot; =&gt; &quot;gzip&quot;
    </code></pre>
    <h3>What this means is:</h3>
    <ul>
      <li>Add a mime-type for :pdf</li>
      <li>Register the method for converting objects to PDF as <code>#to_pdf</code>.</li>
      <li>Register the incoming mime-type "Accept" header as <code>application/pdf</code>.</li>
      <li>Specify a new header for PDF types so it will set <code>Content-Encoding</code> to gzip.</li>
    </ul>

    <h3>You can then do:</h3>
    <pre><code>
      class Foo &lt; Application
        provides :pdf
      end
    </code></pre>

    <h3>Where can I find help?</h3>
    <p>If you have any questions or if you can't figure something out, please take a
      look at our <a href="http://merb.devjavu.com/"> project development page</a> or,
      feel free to come chat at irc.freenode.net, channel #merb.</p>

    <h3>How do I edit this page?</h3>
    <p>You can change what people see when this happens byy editing <tt>app/views/exceptions/not_found.html.erb</tt>.</p> 

  </div>

  <div id="footer-container">
    <hr />
    <div class="left"></div>
    <div class="right">&copy; 2007 the merb dev team</div>
    <p>&nbsp;</p>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merb-gen-0.9.2 app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb