ruby on rails - Importing data from one table to another through a form -


i have application trying create check_in page list of checked_in persons listed. pulling data, such name, phone number, address original table checked_in table. in view have form follows:

        <%= form_for @check_in, :url => {:controller => 'check_ins', :action => 'create' } |f| %>           <% @account.children.each |child| %>             <%= f.check_box :child_id, :checked => 'checked' %>             <%= image_tag child.photo.url(:thumb) %>             <span class="name"><%= child.first %>             <%= child.last %></span><br/>           <% end %> 

the listed child.first , child.last comes table named children. in checked_in table columns labeled child_first, child_last. how transfer results of form table? using sql database.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -