<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1148,7 +1148,7 @@ function! s:Rake(bang,lnum,arg)
       if !a:bang
         cwindow
       endif
-    elseif arg =~# '^\%(stats\|routes\|secret\|time:zones\|db:\%(charset\|collation\|fixtures:identify\&gt;.*\|version\)\)\%(:\|$\)'
+    elseif arg =~# '^\%(stats\|routes\|secret\|time:zones\|db:\%(charset\|collation\|fixtures:identify\&gt;.*\|version\)\)\%([: ]\|$\)'
       let &amp;l:errorformat = '%D(in\ %f),%+G%.%#'
       exe 'make! '.arg
       if !a:bang
@@ -1258,6 +1258,14 @@ function! s:readable_default_rake_task(lnum) dict abort
     endif
   elseif self.name() =~# '\&lt;db/seeds\.rb$'
     return 'db:seed'
+  elseif self.type_name('controller') &amp;&amp; lnum
+    let lm = self.last_method(lnum)
+    if lm != ''
+      &quot; rake routes doesn't support ACTION... yet...
+      return 'routes CONTROLLER='.self.controller_name().' ACTION='.lm
+    else
+      return 'routes CONTROLLER='.self.controller_name()
+    endif
   elseif app.has('spec') &amp;&amp; self.name() =~# '^app/.*\.rb' &amp;&amp; app.has_file(s:sub(self.name(),'^app/(.*)\.rb$','spec/\1_spec.rb'))
     return 'spec SPEC=&quot;%:p:r:s?[\/]app[\/]?/spec/?_spec.rb&quot; SPEC_OPTS='
   elseif t=~ '^model\&gt;'</diff>
      <filename>autoload/rails.vim</filename>
    </modified>
    <modified>
      <diff>@@ -592,6 +592,7 @@ functional test		test:functionals TEST=... TESTOPTS=-n...
 integration test	test:integration TEST=... TESTOPTS=-n...
 spec			spec SPEC=... SPEC_OPTS=--line=...
 feature			cucumber FEATURE=...:...
+controller		routes CONTROLLER=...
 fixtures		db:fixtures:identify LABEL=...
 migration in self.up	db:migrate:up VERSION=...
 migration in self.down	db:migrate:down VERSION=...</diff>
      <filename>doc/rails.txt</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>11739c09e3e692aeaf2abc21a3b2adcbd71affea</id>
    </parent>
  </parents>
  <author>
    <name>Tim Pope</name>
    <email>code@tpope.net</email>
  </author>
  <url>http://github.com/tpope/vim-rails/commit/e9204a4916e070dfd4c40f75db083dabe18b08f2</url>
  <id>e9204a4916e070dfd4c40f75db083dabe18b08f2</id>
  <committed-date>2009-09-26T20:53:41-07:00</committed-date>
  <authored-date>2009-09-26T20:52:55-07:00</authored-date>
  <message>:.Rake in controller runs rake routes CONTROLLER=</message>
  <tree>22511636b87b7be4da898dfdc3bbda60730264bd</tree>
  <committer>
    <name>Tim Pope</name>
    <email>code@tpope.net</email>
  </committer>
</commit>
