core/rails/app/controllers/application_controller.rb
# Common sample method.  It is basically identical for every controller.
Common sample method.  It is basically identical for every controller.
Common sample method . It is basically identical for every controller .
def sample
    if self.model
      j = self.model.column_defaults.reject{|k,v| /(^id)|_(id|at)$/ =~ k}
      render api_show(j,self.class.model)
    else
      render api_not_implemented(self.model, "sample", "")
    end
  end
def sample if self . model j = self . model . column_defaults . reject { | k , v | / (^id)|_(id|at)$ / =~ k } render api_show ( j , self . class . model ) else render api_not_implemented ( self . model , "sample" , "" ) end end
Common sample method.
Common sample method .