search for: repair_tickets

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

2008 Jan 18
2
autocomplete for
...xt_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/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...
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 => ''...