Print Logo

Part E - RSS Controller




<<  <   >  >>

This is the application controller for my RSS feeds.


class RssfdController < ApplicationController
  def rpage
    $realm=params[:id].gsub("articles","") 
    @articles = Art.find :all, :order => "artnum DESC", :limit => 25,
      :conditions=> {
      :realm=>$realm
      }
    @realmrow = Realm.find(:first, :conditions=> ["name='"+$realm+"'"])
    @uresourcerowh = Uresource.find(:first, :conditions=> ["realm='"+$realm+"' AND label='Print Home'"])
#.gsub("mcjbio.html","")
  end
end





This article comes from L1g3r.com:
http://l1g3r.com/

The URL for this story is:
http://l1g3r.com/art8.html

Copyright 2010 L1g3r.com. Read our Terms of Use.