Thanks a lot Jeff,
Yeah I saw it works, that's why I wondered about the linked post..
Anyway, I'm just trying to basically get emails that contain the
exception/error message in the subject so it's easier to sort
if there are many error mails.
Of course the rescue_from method only targets one s
Hi Christoph,
My (simple) example was just trying to give you an idea of how to do what
you were asking using rescue_from.
And note that the log does show that the re-raising worked as expected,
where we did something with the caught exception first (ie write a debug
TEST line to the log) befo
Hi Jeff, thanks for your reply!
I found the article here:
http://www.simonecarletti.com/blog/2009/11/re-raise-a-ruby-exception-in-a-rails-rescue_from-statement/
And he mentions that re-raising does not work since rails won't catch it
anymore..
has this been changed since?
I generally thought th
Hi Christoph,
All you need to do is re-raise the exception after you're done using it in
your rescue_from, so something along the lines of:
$ cat ./app/controllers/foo_controller.rb
...
rescue_from Exception do |e|
# do something with e before re-raising it ...
Rails.logger.debug("TEST
Hi there,
I'm using Log4r in my rails projects. On log.error an email is sent using
the EmailOutputter.
I know changed the EmailOutputter to include a global var in the subject
(MDC) since the subject is normally static.
I want to set this var to the exception message, so it is sent as the
sub
On Nov 12, 2013, at 8:56 AM, muchira k. wrote:
> Yes, The form submits an uploaded file.
>
>
Then you're going to have to use another method to handle this; the keyhole
iframe is a popular trick. Ajax form submissions don't handle file elements in
a perfectly cross-platform manner, and some
Yes, The form submits an uploaded file.
On Tue, Nov 12, 2013 at 4:05 PM, Walter Lee Davis wrote:
>
> On Nov 12, 2013, at 7:04 AM, bertly_the_coder wrote:
>
> > this is how the form looks when rendered:
> > class="simple_form non_member_applcation" data-remote="true"
> enctype="multipart/form-da
On 12 November 2013 13:41, Dave Castellano wrote:
Please quote the previous message so that the thread can be followed.
This is a mailing list not a forum, though you may be accessing it via
a forum like interface
> Unfortunately, a minisection can belong to many books, chapters, ect...
> so nee
Thanks Robert,
Unfortunately, a minisection can belong to many books, chapters, ect...
so needs a join table and can't be flattened.
Dave
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To un
On Nov 12, 2013, at 7:04 AM, bertly_the_coder wrote:
> this is how the form looks when rendered:
> class="simple_form non_member_applcation" data-remote="true"
> enctype="multipart/form-data" id="non-member-application" method="post"
> novalidate="novalidate">.
>
I'm pretty sure you stil
this is how the form looks when rendered:
.
On Tuesday, November 12, 2013 2:48:50 PM UTC+3, bertly_the_coder wrote:
>
> Hi guys,
>
> I am battling with the weirdest problem ever. I'm using rails 3.2.13 and
> trying to submit a form remotely and it keeps getting processed as HTML. I
> have
Hi guys,
I am battling with the weirdest problem ever. I'm using rails 3.2.13 and
trying to submit a form remotely and it keeps getting processed as HTML. I
have the correct line in my application.js file namely:
#= require jquery
#= require jquery_ujs
I have the correct line in my form:
= s
12 matches
Mail list logo