Skip to content

Instantly share code, notes, and snippets.

@petehuang
Created June 30, 2013 16:10
Show Gist options
  • Save petehuang/5895771 to your computer and use it in GitHub Desktop.
Save petehuang/5895771 to your computer and use it in GitHub Desktop.
Only displays the radio button generated outside of the 'until'.
def show_overall_rating(value)
count = 1
until count == value
radio_button :review, :overall, count, options={:class => 'star', :disabled => 'disabled'}
count += 1
end
radio_button :review, :overall, count, options={:class => 'star', :disabled => 'disabled', :checked => 'checked'}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment