Created
September 22, 2014 18:30
-
-
Save mib32/7e7ee8dcfaaf7c6ad93f to your computer and use it in GitHub Desktop.
form for rails association
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
.sc(data-rateable='active' data-star-size=20) | |
-5.times do |i| | |
.star{ class: (item.rating >= i+1 ? 'lit' : 'dim')} | |
.lr | |
Оставить отзыв | |
.review_form | |
= form_for item.reviews.new do |f| | |
.m-row | |
= f.text_field :text | |
.m-row | |
= f.submit 'Отправить' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment