1.7 rails runner. runner runs Ruby code in the context of Rails non-interactively. For instance: $ rails runner "Model.long_running_method" You can also use the alias “r” to invoke the runner: rails r. You can specify the environment in which the runner command should operate using the -e switch. $ rails runner -e staging "Model.long ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.