Fix needed for running on edge rails

0 views
Skip to first unread message

Beebe4

unread,
Feb 18, 2008, 11:30:35 AM2/18/08
to BrainBuster Discussion
Hello from Hashrocket.

When trying to use brain_buster with latest version of edge rails (as
of revision 8894). We were getting the following exception:

ActionView::TemplateFinder::InvalidViewPath in 'UsersController
activates user'
Unprocessed view path found: "/Users/pair/svn_hashrocket/keymaster/
trunk/vendor/plugins/brain_buster/views/brain_busters". Set your view
paths with #append_view_path, #prepend_view_path, or #view_paths=.

It appears that directly manipulating the view_paths array is
deprecated in edge, therefore changing:

obj.view_paths << File.expand_path(File.join("vendor", "plugins",
"brain_buster", "views", "brain_busters"))

to

obj.append_view_path File.expand_path(File.join("vendor", "plugins",
"brain_buster", "views", "brain_busters"))

fixes the problem.

Cheers,
Ben (and Obie)

Rob Sanheim

unread,
Feb 22, 2008, 4:12:07 PM2/22/08
to brainbust...@googlegroups.com
Thanks, this is coming in the next release later today.

- Rob

Reply all
Reply to author
Forward
0 new messages