def rating_stars(rating)
  output = []
  rating.round.times { output << content_tag(:span, "★", class: 'full') }
...

Ruby Generate span elements for ...

by verminvermin.myopenid.com, July 06, 2011 03:14, 3 refactorings, tagged with rails, helper method, ruby on rails

Is there a better/alternati...

55502f40dc8b7c769880b10874abc9d0 Talk
def toll_free_dealer_phone(phone)
    formated_phone = phone
    area_code_supported = %w( 866 877 888)
...

Ruby Add 1- in front of a number

by carlpelletier.myopenid.com, July 20, 2009 19:11, -44 refactorings, tagged with rails, helper method, toll free number

I need to build a helper me...

321d08dbad2770da0994b5f53bc8757a Talk
<table>
  <thead> <th colspan="2">Groups</th></thead>
  
...

Ruby Generating tables with a he...

by foxdemon, October 17, 2008 13:17, 1 refactoring, tagged with rails, table, helper method

I need to make tables to li...

8fa97b9513b66cccc2db021782863b3b Talk