Wow, that's pretty powerful stuff there.

I created a Universal Templates controller with the following test:

class UniversalTemplatesController < ApplicationController

  def index
    validate_date_form
    @objects = 
params[:controller].singularize.camelcase.constantize.list(params[:search], 
params[:page], params[:orderby], params[:sortby], params[:numteams], 
params[:compiled_on])
    @showall = params[:numteams]
    @searchteams = params[:search]

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @rushing_offenses }
    end
  end

end

Changed my rushing_offenses_controller to..

class RushingOffensesController < UniversalTemplatesController
  before_filter :set_pagetitle

  def set_pagetitle
    @pagetitle = "NCAA Division I : Rushing Offense Statistics"
  end

end

And then changed the @rushing_offenses instance variables to @objects 
and it all works great...

I didn't think you could do this with controllers at all.  Amazing - 
thanks!!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to