Phillip
2009-Mar-15 22:08 UTC
You called render with invalid options : {:text=>"howdy"}, nil
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2009-Mar-16 01:21 UTC
Re: You called render with invalid options : {:text=>"howdy"}, nil
On Mar 15, 10:08 pm, Phillip <p...-Ii1a+1C3hTcU9EY8eDC8XQC/G2K4zDHf@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bob Martens
2009-Mar-16 06:03 UTC
Re: You called render with invalid options : {:text=>"howdy"}, nil
As Fred said, what plugins/gems are you using? On Mar 15, 5:08 pm, Phillip <p...-Ii1a+1C3hTcU9EY8eDC8XQC/G2K4zDHf@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Phillip
2009-Mar-24 12:54 UTC
Re: You called render with invalid options : {:text=>"howdy"}, nil
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-study-upgrading-the-insoshi-social-networking-platform/ which will take you here: script/plugin install git://github.com/drnic/rails-footnotes.git On Mar 15, 6:08 pm, Phillip <p...-Ii1a+1C3hTcU9EY8eDC8XQC/G2K4zDHf@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---