# Why comments feed is opening as a dialog box

**URL:** <https://www.ruby-forum.com/t/why-comments-feed-is-opening-as-a-dialog-box/91483>\
**Category:** Rails\
**Created:** [April 9, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/why-comments-feed-is-opening-as-a-dialog-box/91483 "2007-04-09T17:50:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [April 9, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/why-comments-feed-is-opening-as-a-dialog-box/91483/1 "2007-04-09T17:50:10Z")

</div>

visit this site.

[http://eventsinindia.com/event/2551](http://eventsinindia.com/event/2551)

Now click on ‘comments feed’ link . In both IE and Firefox it prompts  
to open a dialog box.

As per feed validator the comments feed is a valid feed.  
([http://eventsinindia.com/feed/event\_comments/2551](http://eventsinindia.com/feed/event_comments/2551)).

My question is what do I need to do so that when someone clicks on the  
commets feed either a subscribe with blog lines message comes or the  
feed content is displayed on the browser itself. Do I need to use  
XSLT?

Here is the complete code.

layout nil  
session :off  
@headers[“Content-Type”] = “application/rss+xml”  
@comments = Comment.find(:all,:order =\> “created\_on DESC”, :limit =\> 20)

xml.instruct!  
xml.rss “version” =\> “2.0”, “xmlns:dc” =\>  
“[DCMI: DCMI Metadata Terms](http://purl.org/dc/elements/1.1/)” do  
xml.channel do

```
xml.title "Comments for event id #{@event.id} : EventsInIndia"
xml.link url_for( :only_path => false,:controller =>

```

‘feed’,:action =\> ‘event\_comments’, :id =\> @event)

```
xml.language "en-us"
xml.copyright "Copyright 2006-2007 www.Flexaxis.com"
xml.docs "http://blogs.law.harvard.edu/tech/rss"
xml.image do
  xml.url "http://eventsinindia.com/images/eii_logo.gif"
  xml.link "http://eventsinindia.com/"
  xml.title "EventsInIndia.com"
end

xml.ttl "40"
xml.description "List of events from all over India"
for comment in @comments
  xml.item do
    xml.title "Comment for event id #{comment.event.id}:

```

#{comment.event.name}"  
xml.link url\_for( :only\_path =\> false,:controller =\>  
‘event’,:action =\> comment.event.name\_url,:anchor =\>  
“comment-#{comment.id}”)  
xml.description feed\_desc\_for\_comment(comment)  
xml.pubDate comment.created\_on.rfc2822  
xml.author “removed\_email\_address@domain.invalid  
(#{get\_name\_of\_commenter(comment,true)})”  
xml.guid url\_for( :only\_path =\> false,:controller =\>  
‘event’,:action =\> comment.event.name\_url,:anchor =\>  
“comment-#{comment.id}”)  
end  
end  
end  
end

---

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [April 10, 2007, 10:45am UTC](https://www.ruby-forum.com/t/why-comments-feed-is-opening-as-a-dialog-box/91483/2 "2007-04-10T10:45:52Z")

</div>

Neeraj K. wrote:

> My question is what do I need to do so that when someone clicks on the
> 
> ```
> xml.description "List of events from all over India"
> xml.guid url_for( :only_path => false,:controller =>
> 
> ```
> 
> ‘event’,:action =\> comment.event.name\_url,:anchor =\>  
> “comment-#{comment.id}”)  
> end  
> end  
> end  
> end
> 
> >

Work for me OK in Firefox 2

## Chris

[http://www.autopendium.co.uk](http://www.autopendium.co.uk)  
stuff about old cars
