#Search stock view
<%form_tag(:action=>:search_stock) do%>
<%=submit_tag('Search")%>
<%end%>#Search Stock Controller def search_stock @stocks = Stock.find_by_something() render action=>:result_page end #Result Page <%form_tag(:action=>:add_to_my_stocks) do %> <%[email protected] do |stock|%> #Create set of checkbox and use stock_id as id <%end%> <%end%> On Mar 18, 1:06 pm, Nick Hoyle <[email protected]> wrote: > I have a search form on my rails site. once the a user has entered a > query it displays the results in a table with an extra field button so > it can be added to there own portfolio called add to my stocks. > > How do i get the data for the stock they want to add and put this into a > new table called mystocks. > > Is using a form submit button the right choice? > > Any examples much appreciated > > Regards > > Nick > -- > Posted viahttp://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

