Colin Law wrote:
> 2009/11/8 Aljaz Fajmut <rails-mailing-l...@andreas-s.net>:
>>
>> How can you pass array of parameters to GET request?
> 
> The same as anything else, eg
> if @my_array contains [0,1,2]
> <%= link_to 'Compare', :controller => 'compare', :action =>
> 'do_compare', :ids => @my_array %>
> 
> If the values you want to pass come from fields then it just a matter
> of setting up the fields correctly.  Google should be able to sort you
> out, I always have to look it up.
> 
> If you are only comparing two records then just pass the ids as two 
> params.
> 
> Colin

Would it make more sense to make separate controller for comparations or 
would it be better to place it inside Plans controller?

Thanks again!
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to