search for: repair_ticket

Displaying 2 results from an estimated 2 matches for "repair_ticket".

Did you mean: repair_tickets
2008 Jan 18
2
autocomplete for
I have this code in my view: <%= text_field_with_auto_complete :client, :name %> when I submit new, y get: "client"=>{"name"=>"MSO"} I want to get: "repair_ticket"=>{"client_id"=>"??"} My models are class Client < ActiveRecord::Base has_many :repair_tickets end class RepairTicket < ActiveRecord::Base belongs_to :client end How can I do that? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~--...
2008 Jan 21
0
Help with pagintate
I have this code in Repair_Tickets_controller: @repair_tickets = RepairTicket.paginate :per_page => 10, :page => params[:page], :conditions => [''ID like ?'', "%#{params[:search]}%"], :order => '...