# Active Scaffold Error - Ruby 1.8.7

**URL:** <https://www.ruby-forum.com/t/active-scaffold-error-ruby-1-8-7/170924>\
**Category:** Rails\
**Created:** [June 24, 2009, 5:00am UTC](https://www.ruby-forum.com/t/active-scaffold-error-ruby-1-8-7/170924 "2009-06-24T05:00:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cswebgrl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Post date:** [June 24, 2009, 5:00am UTC](https://www.ruby-forum.com/t/active-scaffold-error-ruby-1-8-7/170924/1 "2009-06-24T05:00:35Z")

</div>

Hi,

I’ve got an app that I’ve inherited that uses Active Scaffold. I’ve  
never used it before, but am now seeing errors on a page that appear to  
point to that plugin.

The system is Ubuntu using Ruby 1.8.7. I already found a work around  
for attachment\_fu using this Ruby version. Is there something else that  
can fix this problem?

THANKS!!!

Here’s my output:

Showing  
vendor/plugins/active\_scaffold/frontends/default/views/\_list\_header.rhtml  
where line #3 raised:

undefined method `[]’ for #Enumerable::Enumerator:0x7f28aa479800

Extracted source (around line #3):

1: \<% if active\_scaffold\_config.action\_links.any? { |link| link.type ==  
:table } -%\>  
2:

  
3: \<% new\_params = params\_for(:action =\> :table) %\>  
4: \<% active\_scaffold\_config.action\_links.each :table do |link| -%\>  
5: \<% next if controller.respond\_to? link.security\_method and  
!controller.send(link.security\_method) -%\>  
6: \<%= render\_action\_link(link, new\_params) -%\>

Trace of template inclusion:  
/vendor/plugins/active\_scaffold/frontends/default/views/list.rhtml

RAILS\_ROOT:  
/var/www/clients/urbanspace/urbanspace\_staging/releases/20090624023518  
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/core\_ext/string/access.rb:43:in  
`first' #{RAILS_ROOT}/vendor/plugins/active_scaffold/lib/helpers/active_scaffold_helpers.rb:41:in`params\_for’

---

<div class="post-metadata">

**Author:** ![cswebgrl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Post date:** [July 6, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/active-scaffold-error-ruby-1-8-7/170924/2 "2009-07-06T19:15:44Z")

</div>

I had this same Active Scaffold problem on Ubuntu 9.04. Installing Ruby  
1.8.6 instead of the default 1.8.7 was the key. I followed the  
instructions in this link:

[http://programmers-blog.com/2009/06/08/ruby-1-8-6-in-ubuntu-9-04-64-minimal](http://programmers-blog.com/2009/06/08/ruby-1-8-6-in-ubuntu-9-04-64-minimal)
