search for: rating_option

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

2006 Jul 26
0
radio_button groups
...restaurants and then have the user rate them from from 1 to 5 using 5 radio buttons. The view code looks like: <h3>Ratings:</h3> <form action="save_ratings" method="post"> <table> <tr> <th>Restaurant</th> <% for rating_option in [1,2,3,4,5] -%> <th><%=h rating_option.to_s -%></th> <% end -%> </tr> <% for user_rating in @ratings -%> <tr> <td><%=h user_rating.restaurant.name -%>: </td> <% for rating_option in [1,2...