#31 open
ferriswheel

undefined method `render_file' for class `ActionView::Base'

Reported by ferriswheel | January 11th, 2009 @ 04:11 PM

hi i am following the install guide(s) for ansuz and this error occurs:


undefined method `render_file' for class `ActionView::Base'

i found one reference that suggested 'render_file' should be 'render:file' but that did not make sense to me. i could only find one use of 'render_file' in the ansuz code.

is there a dependency missing/wrong version of a gem?

also is sqlite3 a usable db for ansuz?

regards john

here is trace of rake command


blackhole /usr/local/ansuz $ rake gems:install --trace
(in /usr/local/ansuz)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `render_file' for class `ActionView::Base'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
/usr/lib/ruby/gems/1.8/gems/gettext-1.93.0/lib/gettext/rails.rb:291
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
/usr/local/ansuz/vendor/plugins/ansuz_savage_beast/init.rb:72:in `evaluate_init_rb'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:103:in `evaluate_init_rb'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:99:in `evaluate_init_rb'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:44:in `load'
/usr/local/ansuz/config/../vendor/plugins/engines/lib/engines/plugin.rb:77:in `load'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:33:in `load_plugins'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:32:in `each'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:32:in `load_plugins'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:323:in `load_plugins'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:160:in `process'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
/usr/local/ansuz/config/environment.rb:27
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/gems.rake:21
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

my system environment is:-


os: gentoo linux
ruby: dev-lang/ruby-1.8.6_p287-r10
ruby gems:
*** LOCAL GEMS ***

actionmailer (2.2.2, 2.1.2, 1.2.5, 1.2.1, 1.2.0)
actionpack (2.2.2, 2.1.2, 1.12.5, 1.12.1, 1.12.0)
activemerchant (1.4.1, 1.4.0)
activerecord (2.2.2, 2.1.2, 1.14.4, 1.14.2, 1.14.0)
activerecord-tableless (0.1.0)
activeresource (2.2.2, 2.1.2)
activesupport (2.2.2, 2.1.2, 1.3.1, 1.3.0)
archive-tar-minitar (0.5.2)
builder (2.1.2, 2.0.0)
capistrano (2.5.3, 1.4.1)
chronic (0.2.3)
color (1.4.0)
crackup (1.0.1)
deplate (0.8.4, 0.8, 0.7.3)
echoe (3.0.2)
fcgi (0.8.7)
feedtools (0.2.29, 0.2.26, 0.2.24)
ferret (0.11.6, 0.10.13)
gettext (1.93.0, 1.8.0)
has_many_polymorphs (2.12)
highline (1.5.0, 1.4.0)
hoe (1.8.2)
latex (0.1.3)
mislav-will_paginate (2.3.6)
mocha (0.9.4)
money (2.0.0)
mysql (2.7)
net-scp (1.0.1)
net-sftp (2.0.1)
net-ssh (2.0.8)
net-ssh-gateway (1.0.0)
open4 (0.9.6)
paginator (1.1.1)
paypal (2.0.0)
pdf-writer (1.1.8)
postgres (0.7.9.2008.01.28, 0.7.1)
postgres-pr (0.5.0, 0.4.0)
rails (2.2.2, 2.1.2)
rake (0.8.3, 0.7.1)
rcov (0.8.1.2.0)
RedCloth (4.1.1, 3.0.4)
rmagick (2.8.0)
rr (0.7.0, 0.6.0)
rspec (1.1.11)
ruby-postgres (0.7.1.2006.04.06)
rubyforge (1.0.2, 1.0.1)
rubygems-update (1.3.1)
rubyzip (0.9.1)
Soks (1.0.3)
sqlite3-ruby (1.2.4, 1.1.0)
thor (0.9.9)
tlsmail (0.0.1)
transaction-simple (1.4.0)
uuidtools (1.0.7, 1.0.0)
vertebra (0.3.0)
vertebra-gemtool (0.3.0)
vpim (0.658, 0.360)

Comments and changes to this ticket

  • James Cook

    James Cook January 11th, 2009 @ 10:37 PM

    • Tag set to bug, deprecation

    There is a sqlite-related bug in the Page model, but it will be fixed when knewter merges my changes. Other than that, sqlite appears to work fine.

    Not sure what's up with render_file. It's deprecated/removed in 2.2.x, and I thought we worked around it.

  • knewter (at gmail)

    knewter (at gmail) February 15th, 2009 @ 09:10 PM

    • State changed from “new” to “open”
    • Assigned user set to “knewter (at gmail)”

    This has shown up for one other person, and he too had gettext in the chain. I installed the gettext gem, but I still can't recreate this error. Do you get it with the latest code?

  • knewter (at gmail)

    knewter (at gmail) February 16th, 2009 @ 06:42 PM

    • State changed from “open” to “resolved”

    Please see http://www.nabble.com/Rails-2.2....

    gettext is broken with rails 2.2. The 'easy fix,' if it's an option, is to uninstall the gettext gem. Clearly, that 'fix' means you lose gettext, but rails does so meh. There will soon enough be a gettext that works in rails 2.2.

    If the easy fix isn't an option...

    There are bound to be some things in ansuz that are broken under rails2.1...not so much in ansuz as in the plugins we depend on (engines, theme_support). If there are forks of those two plugins that support both 2.2 and 2.1, then we could use those forks and easily support both. Alternatively, if you suffer from this bug you'll need to revert to an earlier theme_support plugin at the least, and the theme format changed for theme_support in the branch we're using, which was the first to support rails 2.2.

    Basically, there are some things you could easily change that would get it working in 2.1, for potentially ridiculous values of 'easily.'

    I'll gladly walk you through the requisite changes in IRC some night if you'd like.

  • knewter (at gmail)

    knewter (at gmail) February 17th, 2009 @ 01:21 PM

    • State changed from “resolved” to “open”

    Meh, in actuality we need to figure out a hack to make gettext not load; it's absurd to think uninstalling gettext is a workable anser. Sorry, I wasn't thinking...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Project for ansuz: Open source Rails-based content management that works.

Pages