I'm using a form_for in Ruby on Rails to create Answers in my Question model as part of a school assignment. I wanted to create an answer within my Question model. I'm dying to know if there is a way to change the font color within the answer so that when users look up the question they'll see an answer distinct from the question complete with reference to the earlier question with further annotations.
<h1>Edit Question</h1>
...
</div>
<div class="col-md-8">
<%= form_for @question do |f| %>
<div class="form-group">
<%= f.label :title %>
<%= f.text_field :title, class: 'form-control', placeholder: "Enter question title" %>
</div>
<div class="form-group">
<%= f.label :body %>
<%= f.text_area :body, rows: 8, class: 'form-control', placeholder: "Enter question body", color: dc143c #its supposed to be crimson & only for added words. %>
</div>
<div class="form-group">
<%= f.check_box :resolved %>
<%= f.label :resolved %>
</div>
<div class="form-group">
<%= f.submit "Save", class: 'btn btn-success' %>
</div>
<% end %>
</div>
</div>
Aucun commentaire:
Enregistrer un commentaire