top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to send an email for troubled code in RoR?

+2 votes
286 views

How to set up a means to automatically send an email from certain parts of troubled code, that is, very often, code that might appear in the Rescue predicate of a begin.....rescue, so as to track down issues remotely.

Surely there must be a gem for such? If not, how might one construct something like this in code?

posted Dec 10, 2013 by Jai Prakash

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

E-Mail poses a security risk and information leak issue, perhaps try using a service that offers SSL and make sure to strip information as it goes into it. There is HoneyBadger (I don't remember them offering a free service) and Airbrake (they do offer a limited free account)

There is also bugsnag but I haven't really played with it.

answer Dec 10, 2013 by Kumar Mitrasen
Datadog is another option, they have a free limited level: 5 hosts, 1 day retention.
Similar Questions
0 votes

Is it any way to disable email delivery in development mode? If yes then please suggest?

+1 vote

I deployed one small app in heroku built on ROR, now I want to send mails. How is it possible can anyone give me a details how to do it.

+1 vote

My Ruby on Rails App needs to connect to a ODBC Datasource that has SSL only enabled.

Can somebody give me an example of connecting to a ODBC Source with SSL?

I constantly get SSL required error. I don't see the option of passing SSL Certificates via UnixODBC. May be something I am missing.

+2 votes

I have code:

if user.role == "topmanager" can :read, ActiveAdmin::Page, :name => "Dashboard"  can :manage, Realty, agent: {agency_id: user.agency_id}...

And I want to add another condition, can :manage, Realty, agent: nilHow to do it? Defining it two times gets error:

UNDEFINED METHOD `REFLECT_ON_ASSOCIATION\' FOR CLASS:CLASS

How can I define multiple conditions for one ability?

+1 vote

EXAMPLE
mail(:to => user.email, :subject => "Hello World!", :from => "abc@gmail.com")

...