search for: repairticket

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

Did you mean: repair_ticket
2008 Jan 18
2
autocomplete for
...e :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" group. To post to this...
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 => ''id DESC'' And this code in Incidences...