Saturday, December 15, 2012

[Rails] Re: Combo Box in rails and save 2 value in diffrent field in one field at database

i get this syntax

<%=select_tag :Status, options_for_select(%w{ Perempuan Laki-Laki
})%>

but, i didn't work, i just need to get value from that combobox, and
send it to query insert to field "Status" in database, but when i try
rails look it like null value

----------------------------

and for second problem, i get this syntax.

<div class="field">
<%= f.label :ttl %></td><td>
<%= f.label :":" %></td><td>
<%= f.text_field :TTL %>
<tr>
<td colspan="3" align="right">
<%= select_date %></td></tr>
</div>

i want to concate value from "<%= f.text_field :TTL %>" and value from
"<%= select_date %>" and send it to update field TTL in database

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate