[Rails] Send mail on Rails.logger.error

2013-01-12 Thread vhochstein
Hi, I would like to receive an email, if anywhere in my application a Rails.logger.errror method is triggered. I know about all these exception_notfiers, but Rails.logger.error is triggered without an exception as well in my application and these exception_notfier gems will not catch them.

[Rails] Re: resource create action with json

2011-08-03 Thread vhochstein
Thanks a lot. I copied code for index action to create and I was setting Accept header to applciation/json. Fixed that and it runs as expected. Great. :-) -- Volker On 2 Aug., 17:00, Tower He towe...@gmail.com wrote: On Tue, Aug 2, 2011 at 9:47 PM, vhochstein vhochst...@googlemail.comwrote

[Rails] resource create action with json

2011-08-02 Thread vhochstein
Hi, Regularly, you create a resource in html via form. you ve got some naming conventions for form fields and rails will bring it together for you in params hash. My question is, how my i do this with json. I would like to create a resource with pure json. do I have to follow specific