<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.merbivore.com/lib/exe/css.php?s=feed" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Merb Wiki development</title>
    <subtitle></subtitle>
    <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/"/>
    <id>http://wiki.merbivore.com/</id>
    <updated>2010-08-18T14:56:50-07:00</updated>
    <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
<link rel="self" type="application/atom+xml" href="http://wiki.merbivore.com/feed.php" />
    <entry>
        <title>Rails-style &quot;Flash&quot; messages</title>
        <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/development/flash_messages?rev=1232788489&amp;do=diff"/>
        <published>2009-01-24T01:14:49-07:00</published>
        <updated>2009-01-24T01:14:49-07:00</updated>
        <id>http://wiki.merbivore.com/development/flash_messages?rev=1232788489&amp;do=diff</id>
        <summary>Merb lets you do Rails-style “flash” messages that you can use to inform the user about the results of certain actions.  Merb's messages are slightly different because they are encoded and serialized into the request, and do not require the session ala Rails.  Because of this optimization, you'll end up with an extra _message request parameter, but you gain not having to use a session :)</summary>
    </entry>
    <entry>
        <title>development:mailer</title>
        <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/development/mailer?rev=1227327391&amp;do=diff"/>
        <published>2008-11-21T20:16:31-07:00</published>
        <updated>2008-11-21T20:16:31-07:00</updated>
        <id>http://wiki.merbivore.com/development/mailer?rev=1227327391&amp;do=diff</id>
        <summary>See &lt;http://wiki.merbivore.com/howto/mailers&gt;</summary>
    </entry>
    <entry>
        <title>development:rails_quickstart</title>
        <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/development/rails_quickstart?rev=1232318237&amp;do=diff"/>
        <published>2009-01-18T14:37:17-07:00</published>
        <updated>2009-01-18T14:37:17-07:00</updated>
        <id>http://wiki.merbivore.com/development/rails_quickstart?rev=1232318237&amp;do=diff</id>
        <summary>bah...
it is normal? I don't think so.. I can edit without permissions? are you crazy man?.</summary>
    </entry>
    <entry>
        <title>Resource url helpers</title>
        <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/development/resource_urls?rev=1230124119&amp;do=diff"/>
        <published>2008-12-24T05:08:39-07:00</published>
        <updated>2008-12-24T05:08:39-07:00</updated>
        <id>http://wiki.merbivore.com/development/resource_urls?rev=1230124119&amp;do=diff</id>
        <summary>Let say you have a model called Article and you defined a route using:

resources :articles

Here is a list of url helpers you can use:


# helper, HTTP verb, controller action

resource(:articles)         # GET =&gt; index
resource(@article)          # GET =&gt; show
resource(:articles, :new)   # GET =&gt; new
resource(@article, :edit)   # GET =&gt; edit
resource(@article, :delete) # GET =&gt; delete
resource(:articles)         # POST =&gt; create
resource(@article)          # PUT =&gt; update
resource(@article)   …</summary>
    </entry>
    <entry>
        <title>Merb Router</title>
        <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/development/router?rev=1224555517&amp;do=diff"/>
        <published>2008-10-20T19:18:37-07:00</published>
        <updated>2008-10-20T19:18:37-07:00</updated>
        <id>http://wiki.merbivore.com/development/router?rev=1224555517&amp;do=diff</id>
        <summary>The merb router is found in $MERB_ROOT/config/router.rb. It will by default contain a block that looks like:


Merb::Router.prepare do
  # RESTful routes
  # resources :posts
  
  # This is the default route for /:controller/:action/:id
  # This is fine for most cases.  If you're heavily using resource-based
  # routes, you may want to comment/remove this line to prevent
  # clients from calling your create or destroy actions with a GET
  default_routes
  
  # Change this for your home page to b…</summary>
    </entry>
    <entry>
        <title>Serving Static Content</title>
        <link rel="alternate" type="text/html" href="http://wiki.merbivore.com/development/static_content?rev=1223853592&amp;do=diff"/>
        <published>2008-10-12T16:19:52-07:00</published>
        <updated>2008-10-12T16:19:52-07:00</updated>
        <id>http://wiki.merbivore.com/development/static_content?rev=1223853592&amp;do=diff</id>
        <summary>You can pop static HTML pages into the public directory of your Merb app, and your web server will bypass your app and render them. 

For instance:



$ cd my_merb_app
$ echo &quot;&lt;h1&gt;Hello World&lt;/h1&gt;&quot; &gt; public/hello.html


Visit &lt;http://localhost:4000/hello.html&gt;, and your static HTML will appear!</summary>
    </entry>
</feed>
