1. Home
  2. Computing & Technology
  3. Ruby

Using rails.vim

By , About.com Guide

5 of 6

Running Scripts

  • Running Generators

    The :Rgenerate command can be used to run generators. To generate a new Post model, for example, run the :Rgenerate model post.

  • Running the Server

    The :Rserver command will run any servers configured to run. The server will run in the background, returning control of Vim to you.

  • Running Rake Tasks

    Rake tasks can be run with the :Rake command. So, to run the db:create:all task, run the :Rake db:create:all command.

  • Running Scripts

    Any of the scripts in the scripts/ directory can be run with the :Rscript command. This can be used to run any scripts that don't have specific commands associated with them. If, for example, you wanted to destroy the Post model, you can run the command :Rscript destroy model post.

Explore Ruby
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Ruby on Rails
  5. Running Scripts

©2009 About.com, a part of The New York Times Company.

All rights reserved.