I''ve searched the whole forums watched all the videos read the books and apparently there is about 1,000 ways to generate a rss feed. Which none of them worked for me. I was going to reply to a post to continue the thread.... http://www.ruby-forum.com/topic/189367#new (which I followed and no success) ....but more questions I need answered. I am running rails 2.3.2 and the furthest I''ve got to display a rss feed was by adding a auto_discovery_link which then brought me to a blank page. I''ve read that you must make a file in the veiw with these ext. .rss.builder .rxml .xml.builder Some controller settings def rss @posts = Post.all :order => "created_at DESC" end def news @incidents = Incident.find(:all, :conditions=>[‘updated_at > ?’, Time.now.yesterday]) render :xml=>@incidents end And about a 1,000 different xml templates which I won''t list. I installed atom with no luck. I have 3 RoR right next to me with 3 different way to do RSS feeds. Do I just not understand xml? Is there something different with rails 2.3.2? I need some kind of tutorial or direction. -- Posted via http://www.ruby-forum.com/.
I am having the same issue on Rails 2.3.2. I get "Missing template my_controller/my_action.erb" for / my_controller/my_action.rss Even though I have a my_action.rss.builder template and map.connect "my_controller/my_action.:format", :controller => ''my_controller'', :action => ''my_action'' in routes.rb On Jun 20, 6:48 pm, Aaron Day <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''ve searched the whole forums watched all the videos read the books > and apparently there is about 1,000 ways to generate a rss feed. Which > none of them worked for me. > > I was going to reply to a post to continue the thread.... > > http://www.ruby-forum.com/topic/189367#new > (which I followed and no success) > > ....but more questions I need answered. > > I am running rails 2.3.2 and the furthest I''ve got to display a rss > feed was by adding a auto_discovery_link which then brought me to a > blank page. I''ve read that you must make a file in the veiw with these > ext. > > .rss.builder > .rxml > .xml.builder > > Some controller settings > > def rss > @posts = Post.all :order => "created_at DESC" > end > > def news > @incidents = Incident.find(:all, :conditions=>[‘updated_at > ?’, > Time.now.yesterday]) > render :xml=>@incidents > end > > And about a 1,000 different xml templates which I won''t list. I > installed atom with no luck. I have 3 RoR right next to me with 3 > different way to do RSS feeds. Do I just not understand xml? Is there > something different with rails 2.3.2? I need some kind of tutorial or > direction. > -- > Posted viahttp://www.ruby-forum.com/.
Never mind, turns out I had a filter that forced the format to html... On Jul 16, 10:13 am, Dermot Brennan <dermot.bren...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am having the same issue on Rails 2.3.2. > > I get "Missing template my_controller/my_action.erb" for / > my_controller/my_action.rss > > Even though I have a my_action.rss.builder template > and > map.connect "my_controller/my_action.:format", :controller => > ''my_controller'', :action => ''my_action'' > in routes.rb > > On Jun 20, 6:48 pm, Aaron Day <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > I''ve searched the whole forums watched all the videos read the books > > and apparently there is about 1,000 ways to generate a rss feed. Which > > none of them worked for me. > > > I was going to reply to a post to continue the thread.... > > >http://www.ruby-forum.com/topic/189367#new > > (which I followed and no success) > > > ....but more questions I need answered. > > > I am running rails 2.3.2 and the furthest I''ve got to display a rss > > feed was by adding a auto_discovery_link which then brought me to a > > blank page. I''ve read that you must make a file in the veiw with these > > ext. > > > .rss.builder > > .rxml > > .xml.builder > > > Some controller settings > > > def rss > > @posts = Post.all :order => "created_at DESC" > > end > > > def news > > @incidents = Incident.find(:all, :conditions=>[‘updated_at > ?’, > > Time.now.yesterday]) > > render :xml=>@incidents > > end > > > And about a 1,000 different xml templates which I won''t list. I > > installed atom with no luck. I have 3 RoR right next to me with 3 > > different way to do RSS feeds. Do I just not understand xml? Is there > > something different with rails 2.3.2? I need some kind of tutorial or > > direction. > > -- > > Posted viahttp://www.ruby-forum.com/.
Aaron Day wrote:> I''ve searched the whole forums watched all the videos read the books > and apparently there is about 1,000 ways to generate a rss feed. Which > none of them worked for me.[...] You''re welcome to look at the way I''m doing it in Quorum ( http://quorum2.sourceforge.net ). I''m not using any RSS plugin or anything, just using Builder to create the XML file (I might change it over to Haml at some point). Check it out. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
2009/7/16 Marnen Laibow-Koser <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> > Aaron Day wrote: >> I''ve searched the whole forums watched all the videos read the books >> and apparently there is about 1,000 ways to generate a rss feed. Which >> none of them worked for me. > [...] >You tried all 1000 ways? I would suggest you pick one you like the look of and if you cannot get it to work then come back here with specific details of the problem and surely someone will help. Colin> You''re welcome to look at the way I''m doing it in Quorum ( > http://quorum2.sourceforge.net ). I''m not using any RSS plugin or > anything, just using Builder to create the XML file (I might change it > over to Haml at some point). Check it out. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > > >