Forum: Ruby on Rails You called render with invalid options : {:text=>"howdy"}, nil

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
775dc78d64c87ae51db522529c3784e9?d=identicon&s=25 Phillip (Guest)
on 2009-03-15 23:58
(Received via mailing list)
I just "upgraded" to Rails 2.2.2.

In environment, I've set:
RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION

In development.rb and production.rb I've commented out:
#config.action_view.cache_template_extensions         = false

I now get an error:
You called render with invalid options : {:text=>"howdy"}, nil

The data within the curlies will be appropriate to the page. It's
usually something like:
{:layout=>true, :file=>"page/list"}, nil

In the :text example, I'm trying to isolate the controller and the
views out of the picture and render some simple text to the screen
using:
  def mypage
    render(:text=>"howdy")
  end

It doesn't matter whether I'm running Apache/mod_rails or Mongrel, I
get the same error. Must be something basic, but there isn't much on
the web about it. Any ideas will be appreciated.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-03-16 02:22
(Received via mailing list)
On Mar 15, 10:08 pm, Phillip <p...@phillipharris.com> wrote:
> It doesn't matter whether I'm running Apache/mod_rails or Mongrel, I
> get the same error. Must be something basic, but there isn't much on
> the web about it. Any ideas will be appreciated.

Random guess: you've got a plugin that was overriding some action
controller internals and those internals have changed.

Fred
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bob Martens (Guest)
on 2009-03-16 07:04
(Received via mailing list)
As Fred said, what plugins/gems are you using?
775dc78d64c87ae51db522529c3784e9?d=identicon&s=25 Phillip (Guest)
on 2009-03-24 13:55
(Received via mailing list)
Thanks everyone for responding. I thought I had posted the answer
somewhere, but I don't see it here. The problem is with the Textmate
Footnotes plugin as described here:

http://blog.insoshi.com/2008/07/03/a-rails-21-case...

which will take you here:
script/plugin install git://github.com/drnic/rails-footnotes.git
This topic is locked and can not be replied to.