undefined method `acts_as_list' for #<Class:0x354f378>

241 views
Skip to first unread message

David Smart

unread,
Jul 23, 2011, 4:13:49 PM7/23/11
to Hobo Users
First, thank you Brian for Agility-Gitorial ! What an easy to
understand and illuminating piece of work.

I was working through it with great success until I did Gitorial-045.
Then attempting to view the resulting website produces the error:
undefined method `acts_as_list' for #<Class:0x354f378>

I am creating Agility using GIT and committing at the same points you
do. So I can compare my code with yours. Commit 043's
creating .gitmodules and acts_as_list are identical.

My versions are Hobo 1.0.3, rails 2.3.8, ruby 1.8.7, on a Mac PPC
v10.5.8.

When installing AAL your first command (./script/plugin install...)
failed to find the plugin. But your second seemed to work fine. The
agility/vendor/plugins/acts_as_list ... tree was installed in my
Agility directory.

The resulting output (copied from Terminal) was:
david-smarts-power-mac-g4-2:agility xds$ ./script/plugin install
acts_as_list
Plugin not found: ["acts_as_list"]
david-smarts-power-mac-g4-2:agility xds$ git submodule add
git://github.com/rails/acts_as_list.git vendor/plugins/acts_as_list
Cloning into vendor/plugins/acts_as_list...
remote: Counting objects: 63, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 63 (delta 16), reused 51 (delta 8)
Receiving objects: 100% (63/63), 9.83 KiB, done.
Resolving deltas: 100% (16/16), done.
david-smarts-power-mac-g4-2:agility xds$ ./script/generate
hobo_migration

I am at a loss where to look further. I hope that someone has seen
this or knows what I should do next.

Thanks so much,
David Smart

David Smart

unread,
Aug 7, 2011, 7:04:22 PM8/7/11
to hobo...@googlegroups.com
False alarm.  This is embarrassing.

I hope no one spent more than 10 seconds on this problem.   When I went back to work a week later I found that Hobo/Rails found acts_as_list just fine.  I can only assume that I was getting the error because I had not restarted the server.

Thank you to anyone who did consider my problem.

Regards,
David Smart
Reply all
Reply to author
Forward
0 new messages