oh-my-zsh/plugins/rails
Ivan Polchenko aead173853 Create README.md
Just a readme file.
2017-02-02 10:22:29 -08:00
..
_rails unified and improved Rails plugin 2013-11-19 17:14:52 +01:00
rails.plugin.zsh Add an alias for Rails console sandbox (#5316) 2016-09-19 19:51:50 -07:00
README.md Create README.md 2017-02-02 10:22:29 -08:00

Rails

Ruby on Rails (http://rubyonrails.org/)

List of Aliases

Utility aliases

alias command
devlog tail -f log/development.log
prodlog tail -f log/production.log
testlog tail -f log/test.log

Environment setting

alias command
-g RED RAILS_ENV=development
-g REP RAILS_ENV=production
-g RET RAILS_ENV=test

Rails aliases

alias rails command
rc rails console
rcs rails console --sandbox
rd rails destroy
rdb rails dbconsole
rg rails generate
rgm rails generate migration
rp rails plugin
ru rails runner
rs rails server
rsd rails server --debugger
rsp rails server --port

Rake aliases

alias rake command
rdm rake db:migrate
rdms rake db:migrate:status
rdr rake db:rollback
rdc rake db:create
rds rake db:seed
rdd rake db:drop
rdrs rake db:reset
rdtc rake db:test:clone
rdtp rake db:test:prepare
rdmtc rake db:migrate db:test:clone
rdsl rake db:schema:load
rlc rake log:clear
rn rake notes
rr rake routes
rrg *rake routes
rt rake test
rmd rake middleware
rsts rake stats

Legacy stuff

alias command
sstat thin --stats "/thin/stats" start
sg ruby script/generate
sd ruby script/destroy
sp ruby script/plugin
sr ruby script/runner
ssp ruby script/spec
sc ruby script/console
sd ruby script/server --debugger