Displaying 1 result from an estimated 1 matches for "to_select".
Did you mean:
do_select
2012 Oct 06
0
rails 3.2 question/answer with a through table
...question.name, (question.label_text unless
question.label_text.nil?), :class => ''control-label'' %>
<div class="controls">
<% if question.data_type == ''select'' %>
<%= pregunta.send(question.data_type, :answer,
question.to_select,:class => "#{question.data_type}") %>
<%= pregunta.hidden_field :question_id, :value => question.id ,
:class => "#{question.data_type}" %>
<% else %>
<%= pregunta.send(question.data_type, :answer, :class =>
"#{question.data_t...