[typo] Rails broke typo

mathew meta at pobox.com
Sat Feb 3 10:15:01 EST 2007


My web host upgraded rails, and now I get this error in production.log:

ActionView::TemplateError (xml_url failed to generate from {:action=>"feed", :ty
pe=>"article", :format=>"rss", :controller=>"xml", :id=>"2051"}, expected: {:act
ion=>"feed", :type=>"sitemap", :format=>"googlesitemap", :controller=>"xml"}, di
ff: {:type=>"sitemap", :format=>"googlesitemap", :id=>"2051"}) on line #33 of th
emes/scribbish/views/articles/_article.rhtml:
30:       <%= trackbacks_link(article) << ',' if article.allow_pings? %>
31:       <%= comments_link(article) << ',' if article.allow_comments? %>
32:       <a href="<%= article_url article %>" rel="bookmark">permalink</a>,
33:       <a href="<%= xml_url :action=>'feed', :type=>'article', :format => 'rs
s',  :id => article %>">rss</a>,
34:       <a href="<%= xml_url :action=>'feed', :type=>'article', :format => 'at
om', :id => article %>">atom</a>
35:     </li>
36:   </ul>

[followed by an ENORMOUS backtrace]

and a bunch of errors on startup:

It looks like you've upgraded to the new version of Rails...and broken
my web site:

/home/meta/typo/public/../config/boot.rb:38:Warning: require_gem is
obsolete.  Use gem instead.
/home/meta/typo/public/../config/boot.rb:38:Warning: require_gem is
obsolete.  Use gem instead.
DEPRECATION WARNING: The :dependent => true option is deprecated and
will be removed from Rails 2.0.  Please use :dependent => :destroy
instead.  See http://www.rubyonrails.org/deprecation for details.  See
http://www.rubyonrails.org/deprecation for details. (called from
has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550)
DEPRECATION WARNING: The :dependent => true option is deprecated and
will be removed from Rails 2.0.  Please use :dependent => :destroy
instead.  See http://www.rubyonrails.org/deprecation for details.  See
http://www.rubyonrails.org/deprecation for details. (called from
has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550)
DEPRECATION WARNING: The :dependent => true option is deprecated and
will be removed from Rails 2.0.  Please use :dependent => :destroy
instead.  See http://www.rubyonrails.org/deprecation for details.  See
http://www.rubyonrails.org/deprecation for details. (called from
has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550)
DEPRECATION WARNING: The :dependent => true option is deprecated and
will be removed from Rails 2.0.  Please use :dependent => :destroy
instead.  See http://www.rubyonrails.org/deprecation for details.  See
http://www.rubyonrails.org/deprecation for details. (called from
has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550)
DEPRECATION WARNING: The :dependent => true option is deprecated and
will be removed from Rails 2.0.  Please use :dependent => :destroy
instead.  See http://www.rubyonrails.org/deprecation for details.  See
http://www.rubyonrails.org/deprecation for details. (called from
has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550)
DEPRECATION WARNING: The :dependent => true option is deprecated and
will be removed from Rails 2.0.  Please use :dependent => :destroy
instead.  See http://www.rubyonrails.org/deprecation for details.  See
http://www.rubyonrails.org/deprecation for details. (called from
has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550)


Any suggestions?


mathew
-- 
<URL:http://www.pobox.com/~meta/>


More information about the Typo-list mailing list