small medium large xlarge

Generic-user-small
10 Dec 2008, 05:30
Christopher Walterson (1 post)

I am having a problem getting the depot example to work properly. I have the following error:

NoMethodError in Admin#list

Showing app/views/admin/list.rhtml where line #14 raised:

undefined method `length’ for # Extracted source (around line #14):

11: 12: <td width="60%"> 13: <%= h(product.title) %>
14: <%= h(truncate(product.description, 80)) %> 15: </td> 16: 17: <td class="list-actions"> RAILS_ROOT: ./script/../config/..

Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/text_helper.rb:36:in truncate' /Users/hadeze/Projects/depot/app/views/admin/list.rhtml:14:in _run_rhtml_47app47views47admin47list46rhtml’ /Users/hadeze/Projects/depot/app/views/admin/list.rhtml:5:in each' /Users/hadeze/Projects/depot/app/views/admin/list.rhtml:5:in _run_rhtml_47app47views47admin47list46rhtml’

Generic-user-small
17 Feb 2009, 04:07
Michael Bush (2 posts)

Did you ever figure this one out? I’m having the same problem (using the second edition of agile web development with rails). thanks.

Generic-user-small
17 Feb 2009, 22:47
Michael Bush (2 posts)

I went back down to ruby 1.8.6 (from 1.8.7) and it solved this issue. (rails 1.2)

You must be logged in to comment