Skip to content

Instantly share code, notes, and snippets.

View moutten's full-sized avatar

Matt Outten moutten

  • Squaremouth
  • Fort Wayne, IN
View GitHub Profile
Steps to migrate a Rails 2.3 project to bundler.
1. Install bundler
gem install bundler
2. Remove existing vendor gems directory
rm -rf vendor/gems
###############################################
# place in /app/helpers/application_helper.rb #
###############################################
def bodytag_id
a = controller.controller_name.underscore
b = controller.action_name.underscore
"#{a}-#{b}".gsub(/_/, '-')
end
def bodytag_class