J.

  1. Viewing All "rails" Posts

  2. Downgrading gems

    Uninstall current i18n-gem:

    gem list -d i18n

    > i18n (0.5.0) […] Installed at: /Library/Ruby/Gems/1.8

    sudo gem uninstall —install-dir /Library/Ruby/Gems/1.8 i18n -v 0.5.0

    Install 0.3.7:

    gem install i18n -v=0.3.7
  3. Ruby Quicktips: Automatically link a controller's stylesheet

    This is a simple application helper that shaunchapman wrote to reduce the tediousness of linking stylesheets for each controller. It will link the controller’s stylesheet (located at public/stylesheets/[controller_name].css) if it exists but it won’t complain if it doesn’t. It is a nice way to…