rails c
starts consolerails db
starts db client
app.root_path
andapp.root_url
app.invoice_path
andapp.invoice_url
app.engine_name.some_path
andapp.engine_name.some_url
show-routes
,show-routes -G invoice
,help show-routes
(requires pry-rails gem)
#to_sql
outputs query, e.g.Account.where(created_at: 1.week.ago..Time.current).to_sql
show-model Account
(requires pry-rails gem)
- Type
help