Skip to content
Jberlinsky edited this page Jan 3, 2012 · 13 revisions

Useful commands:

  • bundle exec sunspot-solr start
  • redis-server /usr/local/etc/redis.conf
  • guard start
  • pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
  • RAILS_ENV="frontend" rails s

Best Practices & Rules of thumb

  • Spend time to make improvements everywhere you go
  • Keep code DRY
  • Leave TODOs on hacks and unfinished bits
  • Name and rename methods accurately
  • When naming files, if you find you have a common prefix, that means its time to split in to a subdirectory.
  • OMIT NEEDLESS WORDS.

Rules of the Console

  • MODEL.record_timestamps = false will keep posts from jumping to the top of the list
  • We really should have better destroy()-fitering.

Setting up a work environment

Workflow

Components

Mundane