Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="field">
- <%= f.label question.question %><br />
- ....
- select question from questions where "id"=1;
- question
- ----------------------------------
- What is 2+3. What is the answer?
- (1 row)
- what is the answer?
- ruby-1.9.2-p290 :006 > helper.label_tag "All Caps String"
- => "<label for="All_Caps_String">All caps string</label>"
- ruby-1.9.2-p290 :007 > helper.label_tag "All Caps String", "All Caps String"
- => "<label for="All_Caps_String">All Caps String</label>
- <%= f.label question.question, question.question %>
Add Comment
Please, Sign In to add comment