With my large application, the Rails console takes a while to load up. Is there a way to single commands more easily?
I\'d also like to be able to automate stuff, an
There are two main ways to run commands outside console:
rails runner (previously script/runner), eg:
$ rails runner "query"
Both are pretty well documented on the rails guide: http://guides.rubyonrails.org/command_line.html
btw: both of these methods will still take the same time as a console to fire up, but they are useful for non-interative tasks.