Actually, not true:

I found that

  @item.tags.size

was responsible - tags is an array!

If I use

  @item.tags.length

it works. Now I should clearly be able to use "size"? I use it with
other variables in the same context and only this one barks.


Latest ruby-1.9.2 (maybe that's the problem? It worked a few days
ago.)



On Apr 24, 5:51 pm, "michael.hasenst...@googlemail.com"
<michael.hasenst...@googlemail.com> wrote:
> Hi,
>
> with a simple Item.find(params[:id]) I got this little error (I
> narrowed it down to that line by removing everything else until I
> found the one causing the error):
>
> Any ideas?
>
> undefined method `map' for #<String:0xaea0024>
>
> Rails.root: /home/mha/App
> Application Trace | Framework Trace | Full Trace
>
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
> lib/active_support/backtrace_cleaner.rb:72:in `block in filter'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
> lib/active_support/backtrace_cleaner.rb:71:in `each'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
> lib/active_support/backtrace_cleaner.rb:71:in `filter'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
> lib/active_support/backtrace_cleaner.rb:26:in `clean'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
> action_view/template/error.rb:47:in `clean_backtrace'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
> action_view/template/error.rb:91:in `line_number'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
> action_view/template/error.rb:115:in `source_location'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
> action_view/template/error.rb:109:in `compute_backtrace'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
> action_view/template/error.rb:34:in `initialize'
> rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
> action_view/template.rb:53:in `new'
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonrails-c...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-core+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-core?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to rubyonrails-c...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to