Displaying 1 result from an estimated 1 matches for "find_custom".
Did you mean:
file_custom
2007 Mar 22
2
method to display the result of find (..) in a view
...troller first makes the query via the model
class MainController < ApplicationController
def index
order = [''lastname'',''firstname'',''father'',''address1'', ....
,''insuranceid'']
@customers = Customer.find_customers(order) #passes the columns in
the order
#we want them shown
#Without this (using
attributes)
#the attributes method
returned...