Title / Description
Code 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 %>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code