search for: each_with_controller

Displaying 1 result from an estimated 1 matches for "each_with_controller".

2006 Apr 05
0
each_with_styles, for adding CSS classes
...;> birthday </div> TO ADD IT TO YOUR PROJECT: 1. Create a file called ''each_with_styles.rb'' in your project''s /lib directory. 2. Include the code below in that file. 3. In your /app/controllers/application.rb file, add the line ''require "each_with_controller" '' to the top. EACH_WITH_STYLES.RB: # Adds each_with_styles to the Array class. # each_with_styles takes an hash of optional # class conditions, and returns a list of all # that apply. # # Possible Conditions: # ---------------------------------------------- # :all -- al...