On 24 Sep 2008, at 11:21, Sijo Kg wrote:
> > Hi > Thanks for your reply.Then how can I call class method of > ServiceDeskResolution from ServiceDeskTicket .I also tried like > > sd_resolution_obj=ServiceDeskResolution.new > sd_resolution_obj > .add_resolution_on_convert_to_incident > (sd_ticket.id,sd_ticket.service_desk_status_id,created_by,modified_by) > And the exception caught was > undefined method `add_resolution_on_convert_to_incident' for > #<ServiceDeskResolution:0xb72d66f0> > Could you please tell me how can I solve this? > It's a class method. call it on the class: ServiceDeskResolution .add_resolution_on_convert_to_incident (sd_ticket.id,sd_ticket.service_desk_status_id,created_by,modified_by) Fred > > Sijo > -- > 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 group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

