Monday, 15 June 2015

How to intercept ruby on Rails (framework) warnings -



How to intercept ruby on Rails (framework) warnings -

according problem: def .. else .. end in ruby, missing ror warning, because did not there (in output)

i want prevent self stepping similar 'pitfalls' in way, show warning(s) on html-page (development), there hits eye sure.

so there way intercept warnings, illustration putting (or getting) @env or alike?

i dont know (or'who') source or improve transport layer of such warnings (rails?)

in short words: no not - not realy

because:

1st) warning not thrown how, 'happens' here : result = kernel.load path in activesupport::dependencies : load_file processed ruby command itself

2nd) warning apears, if alter source warning (rails things ...)

3rd) depends of programming environment using

but: can read (tail of the) log file of environment (rubymine or ever using), eg. little rails extention, , set warning then. not precise, improve nil

ruby-on-rails

No comments:

Post a Comment