Craig White wrote:
> On Tue, 2010-02-16 at 07:01 +0100, Greg Ma wrote:
>> <% if !...@top_search.blank? %>
>>   <%= @top_search.word.join(",") %> ?????????????????
>> <% else %>
>>  <p>No search yet!</p>
>> <% end %>
> ----
> not sure what you're getting at but
> 
> + concatenates two arrays
> 
> << pushes an object on to the end of an array
> 
>>> test1 = Array.new
> => []
>>> test2 = ["5"]
> => ["5"]
>>> test1 + test2
> => ["5"]
>>> test1 << "6"
> => ["6"]
>>> test1 + test2
> => ["6", "5"]

This cannot work in my case as my array contains Tags object.
I'd need to access each element to access the property i want to display


> Craig
> 
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

-- 
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