Created
June 30, 2013 16:10
-
-
Save petehuang/5895771 to your computer and use it in GitHub Desktop.
Only displays the radio button generated outside of the 'until'.
This file contains 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
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