I have the following code:
Tag.find_all_by_company_id(4).each.collect{|tag| tag.name }.join(",")
(Essentially I'm trying to build a JS array of tag names)
When I run this code, I get:
LocalJumpError: no block given
from (irb):13:in `each'
from (irb):13
Any ideas?