@@ -81,23 +81,24 @@ actually edit a file from a Rails application.
8181 might like :Rake log:clear.
8282
8383 *rails-:Rpreview*
84- :Rpreview [{path} ] Creates a URL from http://localhost:3000/ (or
85- the last arguments given to | :Rserver | ) and the
86- {path} given. The not too useful default is to then
87- edit this URL using Vim itself, allowing | netrw | to
88- download it. More useful is to define a :OpenURL
89- command, which will be used instead (see
90- | rails-:OpenURL | ). If {path} is omitted, a sensible
91- default is used (considers the current
92- controller/template, but does not take routing into
93- account). The default is overridden by comments like
94- the following that are either before the current
84+ :Rpreview [{path} ] Creates a URL from the currently running server (or
85+ http://localhost:3000/ if it's not running) and the
86+ {path} given and open it in the browser. If {path} is
87+ omitted, a sensible default is used (considers the
88+ current controller/template, but does not take routing
89+ into account). The default is overridden by comments
90+ like the following that are either before the current
9591 method call or at the top of the file: >
92+
9693 # GET /users
9794 # PUT /users/1
98- <
95+
96+ < See | rails-:OpenURL | if you need to provide a custom
97+ browser launcher.
98+
9999 *rails-:Rpreview!*
100- :Rpreview! [{path} ] As with :Rpreview, except :OpenURL is never used.
100+ :Rpreview! [{path} ] Like :Rpreview, but open the path inside Vim using
101+ | netrw | instead.
101102
102103 *rails-:Rtags*
103104:Rtags Calls ctags -R on the current application root.
0 commit comments