Hello everybody. I got the email done with "after_save" and "after_update" callbacks.
But now i can't put a link in the email (.erb) to the current ticket created. I need the link so the admin can access the specific ticket created. I don´t know how to do it. :( Can somebody help me. Thanks in advance, Edson On Feb 11, 5:40 pm, Edson <[email protected]> wrote: > Hello everyone, > > I need some help on this, if is somebody that can give me tips or > suggestions about some similar topics already opened on the discussion > i'll appreciate: > > I have a model: > > class Ticket < ActiveRecord::Base > > hobo_model # Don't put anything above this > > fields do > date :datetime > description :string > timestamps > end > > belongs_to :system, :creator => true > belongs_to :user, :class_name => "User", :creator => true > belongs_to :status, :class_name => "TicketStatus" > has_many :ticket_atributos, :dependent => :destroy > > And i want to create a lifecycle for anytime that the user creates a > new ticket the app can automatically sends a email notification to all > the users off the app with a link to access the new ticket created, > directly. And to to the same process when the ticket get updated. > > I've seen the friendship tutorial but i can't make my lifecycle > working because i don't use the hobo_user_model..i need to implement > it in the ticket model. I don't know if its possible or if i can do it > through the hobo_user_model. > > I've tried to create in the C of the ticket all the creators and > transitions (declared in the ticketController) i've tested and got no > errors but the email never been sent. > > My environment config is set all right because i can send email for > forgotten password and activate account through te hobo_user_model of > my app. > > Please can somebody give me a tip? I've been trying almost 3 weeks on > this and nuthin. > > Thank you in advance! > > Edson Salomão -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
