Bug #1271

Typo config/routes.rb may be wrong...

Added by okkez _ 55 days ago. Updated 33 days ago.

Status :Closed Start :09/26/2008
Priority :Normal Due date :
Assigned to :- % Done :

0%

Category :-
Target version :- Estimated time :1.00 hour
Resolution :

fixed


Description

I think Typo's config/routes.rb is something wrong.
For example,

view source of http://typo.example.com/articles.rss .
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>okkez weblog : </title>
    <link>http://typo.example.com/.rss</link> <!-- wrong line. -->
    <language>en-us</language>
    <ttl>40</ttl>
...
I tried to correct this problem.
Add this line in config/routes.rb .
  map.resources :articles

I cannot test enough about this.
I think that we need to check all named routes and rewrite.

regards.

History

09/27/2008 12:06 AM - Cyril Mougel

  • Status changed from New to Assigned
  • Estimated time set to 1.0
  • Resolution set to fixed

Thanks for you report.

I fixed this issue in revision r1832.

A spec added to test this issue.

09/30/2008 04:00 PM - okkez _

I comfirmed this.
Thank you.

10/18/2008 11:56 AM - neuro -

  • Status changed from Assigned to Closed

Also available in: Atom PDF