This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################### | |
| # 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 |