Bim
Ruby
code posted
created at 08 Apr 15:49
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
rails g scaffold Code content:text name rails new MonSite var jeff = 'Jeffrey'; var jeff = 'Jeffrey'; <tr> <th>French</th> <th>English</th> <th>Comment</th> <th colspan="3"></th> </tr> <%= form_tag do %> <%= raw(hidden_field_tag(:word_id, @word.id)) %> <div class="form-group"> <%= radio_button_tag :lang, 'fr', @lang == 'fr' ? true : false %> <%= label_tag(:lang_fr, "Fr -> En") %> <%= radio_button_tag :lang, 'en', @lang == 'en' ? true : false %> <%= label_tag(:lang_en, "En -> Fr") %> </div> <div class="form-group"> <%= text_field_tag :answer, '', class: 'form-control', placeholder: 'Votre réponse', required: true, autofocus: true, autocomplete: 'off' %> </div> <div class="form-group"> <%= submit_tag 'Valider', class: "btn btn-primary btn-block" %> </div> <% end %> |
910 Bytes in 2 ms with coderay