lib/dynamic_models.rb
def fetch_model_list
    if parent_model
      return parent_model.send("#{model_name.pluralize.downcase}")
    else
      return model_class.find(:all)
    end
  end
# returns an array of models (using the name of this controller)
returns an array of models (using the name of this controller)
returns an array of models ( using the name of this controller )
def fetch_model_list
    if parent_model
      return parent_model.send("#{model_name.pluralize.downcase}")
    else
      return model_class.find(:all)
    end
  end
def fetch_model_list if parent_model return parent_model . send ( "#{model_name.pluralize.downcase}" ) else return model_class . find ( :all ) end end
returns an array of models (using the name of this controller)
returns an array of models ( using the name of this controller )