Hello Piotroslav, First off all thanks for the tips.
I've tried to put a link in the email but all a get is this :http:// localhost:3000/tickets/4. every time a create a new ticket, i mean this link is static. But i need a new key for every new ticket created. Do i need to use lifecycle for this? Thank you Edson p.s.: here is my code for ticket_url: <%= ticket_url :host => @host, :id => @key.id %> On Feb 23, 3:05 pm, Piotroslav <[email protected]> wrote: > Hello Edson, > Maybe this will help. > In app I work on emails are being generated through UserMailer > controller > def new_project_notice(user, project) > host = Hobo::Controller.request_host > app_name = Hobo::Controller.app_name || host > @subject = "#{app_name} -- new project for " + > project.company.name + ": "+ project.description > @body = { :user => user, :host => host, :app_name => > app_name, :project => project } > @recipients = User.role_is_not("international").*.email_address > @from = "no-reply@#{host}" > @sent_on = Time.now > @headers = {} > end > > And inside app/view/usermailer I have files with names corresponding > to methods in controller like > new_project_notice.erb which has email content: > "Final approval for project <%= @project.company %> has been granted. > <%= url_for(:host => @host, :controller => "projects", :action => > "show", :id => @project) %>" -- 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.
