<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>layout/layout.haml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,8 @@
 class AccountController &lt; Ramaze::Controller
   helper :simple_captcha, :identity, :user
   engine :Haml
-  layout '/layout'
+  layout 'layout'
+  map_layouts '/'
 
   def login
     if request[:fail] == 'session'
@@ -28,9 +29,9 @@ class AccountController &lt; Ramaze::Controller
   # site.
   def after_login
     if logged_in?
-      answer R(SpamController, :list_pending)
+      answer SpamController.r(:list_pending)
     else
-      redirect Rs(:login, :fail =&gt; :session)
+      redirect r(:login, :fail =&gt; :session)
     end
   end
 
@@ -40,7 +41,7 @@ class AccountController &lt; Ramaze::Controller
     if $rapaste[:users].include?(@oid)
       session[:user] = @oid
       flash[:good] = flash[:success]
-      redirect R(SpamController, :list_pending)
+      redirect SpamController.r(:list_pending)
     else
       flash[:bad] = &quot;None of our users belongs to this OpenID&quot;
     end</diff>
      <filename>controller/account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -91,7 +91,7 @@ class PasteController &lt; Ramaze::Controller
   # TODO: the behaviour of forking a private paste isn't implemented yet,
   #       suggestions welcome
   def fork(id, digest = nil)
-    redirect Rs(:fork =&gt; id, :digest =&gt; digest)
+    redirect r(:/, :fork =&gt; id, :digest =&gt; digest)
   end
 
   # TODO: implement this using something like session[:pastes]
@@ -157,6 +157,6 @@ class PasteController &lt; Ramaze::Controller
       :text    =&gt; text
     )
 
-    redirect Rs(:list)
+    redirect r(:list)
   end
 end</diff>
      <filename>controller/paste.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,8 @@ class SpamController &lt; Ramaze::Controller
   map '/spam'
   helper :paginate, :formatting, :aspect
   engine :Haml
-  layout '/layout'
+  layout 'layout'
+  map_layouts '/'
 
   before_all do
     redirect_referrer unless $rapaste[:users].include?(session[:openid_identity])
@@ -51,7 +52,7 @@ class SpamController &lt; Ramaze::Controller
     session[:undo] &lt;&lt; request.params
     session[:undo].shift until session[:undo].size &lt; 10 # keep it reasonable
 
-    flash[:good] = &quot;Categorized this page, #{A('undo?', :href =&gt; Rs(:undo))}&quot;
+    flash[:good] = &quot;Categorized this page, #{a('undo?', :undo)}&quot;
 
     redirect_referrer
   end
@@ -64,7 +65,7 @@ class SpamController &lt; Ramaze::Controller
         paste.save
       end
 
-      flash[:good] = &quot;Undo successful, want to #{A('undo further?', :href =&gt; Rs(:undo))}&quot;
+      flash[:good] = &quot;Undo successful, want to #{a('undo further?', :undo)}&quot;
     else
       flash[:bad] = &quot;Nothing to undo&quot;
     end</diff>
      <filename>controller/spam.rb</filename>
    </modified>
    <modified>
      <diff>@@ -44,21 +44,19 @@ class Paste &lt; Sequel::Model
     $rapaste_syntaxes[syntax]
   end
 
-  include Ramaze::Helper::Link
-
   def link(name)
     ident = [id]
     ident &lt;&lt; digest if private
 
     case name
     when :fork, :delete
-      A(name.to_s.capitalize, :href =&gt; R(PasteController, name, *ident))
+      PasteController.a(name.to_s.capitalize, name, *ident))
     when :href
-      R(PasteController, *ident)
+      PasteController.r(*ident)
     else
       file = &quot;#{ident * '/'}.#{name}&quot;
       title = &quot;#{id}.#{name}&quot;
-      A(title, :href =&gt; R(PasteController, file))
+      PasteController.a(title, file)
     end
   end
 </diff>
      <filename>model/paste.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 .login
-  %form{:method =&gt; :POST, :action =&gt; Rs(:login)}
+  %form{:method =&gt; :POST, :action =&gt; r(:login)}
     %fieldset
       %legend= &quot;#{$rapaste[:title]} Login&quot;
       %label{:for =&gt; :url} Identity URL:</diff>
      <filename>view/account/login.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,13 +3,13 @@
 .flashbox= flashbox
 
 = &quot;There are #@count unapproved pastes&quot;
-%a{:href =&gt; Rs(:list_spammy)} Search for obvious spam (slow)
+%a{:href =&gt; r(:list_spammy)} Search for obvious spam (slow)
 
-%form{:method =&gt; :GET, :action =&gt; Rs(:search)}
+%form{:method =&gt; :GET, :action =&gt; r(:search)}
   Search this list:
   %input{:type =&gt; :input, :name =&gt; :q}
 
-%form{:method =&gt; :POST, :action =&gt; Rs(:mark)}
+%form{:method =&gt; :POST, :action =&gt; r(:mark)}
   %table{:style =&gt; 'margin-left: auto; margin-right: auto;'}
     %tr
       %td Spam</diff>
      <filename>view/spam/list_pending.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,13 +3,13 @@
 .flashbox= flashbox
 
 = &quot;There are #@count spammy unapproved pastes&quot;
-%a{:href =&gt; Rs(:list_pending)} List all pending
+= a('List all pending', :list)
 
-%form{:method =&gt; :GET, :action =&gt; Rs(:search)}
+%form{:method =&gt; :GET, :action =&gt; r(:search)}
   Search this list:
   %input{:type =&gt; :input, :name =&gt; :q}
 
-%form{:method =&gt; :POST, :action =&gt; Rs(:mark)}
+%form{:method =&gt; :POST, :action =&gt; r(:mark)}
   %table{:style =&gt; 'margin-left: auto; margin-right: auto;'}
     %tr
       %td Spam</diff>
      <filename>view/spam/list_spammy.haml</filename>
    </modified>
    <modified>
      <diff>@@ -3,13 +3,13 @@
 .flashbox= flashbox
 
 = &quot;There are #@count results in inside unapproved pastes.&quot;
-%a{:href =&gt; Rs(:list_pending)} List all pending
+%a{:href =&gt; r(:list_pending)} List all pending
 
-%form{:method =&gt; :GET, :action =&gt; Rs(:search)}
+%form{:method =&gt; :GET, :action =&gt; r(:search)}
   Search this list:
   %input{:type =&gt; :input, :name =&gt; :q}
 
-%form{:method =&gt; :POST, :action =&gt; Rs(:mark)}
+%form{:method =&gt; :POST, :action =&gt; r(:mark)}
   %table{:style =&gt; 'margin-left: auto; margin-right: auto;'}
     %tr
       %td Spam</diff>
      <filename>view/spam/search.haml</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>view/layout.haml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>a3ac46806f84b3c4d7885095ac386e55d7f095f9</id>
    </parent>
  </parents>
  <author>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </author>
  <url>http://github.com/manveru/rapaste/commit/9bbeec1f84cf5964f11938b24800b3337138dac7</url>
  <id>9bbeec1f84cf5964f11938b24800b3337138dac7</id>
  <committed-date>2009-04-27T07:00:08-07:00</committed-date>
  <authored-date>2009-04-27T07:00:08-07:00</authored-date>
  <message>Finish port to new ramaze</message>
  <tree>d45834f91edb4c72984dfc7ca515f5698eed6d75</tree>
  <committer>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </committer>
</commit>
