L1g3r Logo           SignalQ Sites: NetAdminTools - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Part E - RSS Controller
Topic:MCJ Web Presentation   Date: 2010-01-07
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Subject

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


Updates and Comments:
On my GNU/Linux workstation this file is located at /opt/mcjr/app/controllers/rssfd_controller.rb
People:
Places:
Things:
Times: