Nat wrote:
> #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]>

Thanks for quick response

How exactly do you do a checkbox with an id?

<%= form.check_box :stock_id %>?
-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to