GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
kneath (author)
Tue Apr 22 16:46:01 -0700 2008
commit  bf6bd400f7391f0af67b5f4a4146b4d6aac48731
tree    0eb364d3aa87211bac88aa439d614d82cba0892a
greed / app / views / exceptions / not_acceptable.html.erb
100644 56 lines (47 sloc) 1.825 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<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>