# Forms Extension

**URL:** <https://www.ruby-forum.com/t/forms-extension/198770>\
**Category:** Radiant CMS\
**Created:** [November 7, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/forms-extension/198770 "2010-11-07T14:13:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 7, 2010, 2:13pm UTC](https://www.ruby-forum.com/t/forms-extension/198770/1 "2010-11-07T14:13:13Z")

</div>

Greetings.

I’m using the forms and forms-mailer extensions to create a form to be  
emailed. Most of it is working well except for attachments. I’ve used  
the  
\<r:file\> tag to get a file chooser button/dialog and that appears to  
work.  
In the “content” page of the form, what gets emailed, I’ve used \<r:read\>  
to  
get the uploaded file, but when the form is submitted, a 500 application  
error is given “for exceptions thrown outside of an action”.

What am I missing? Thanks for any suggestions.

---

<div class="post-metadata">

**Author:** ![Marshal\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Marshal\_L](https://www.ruby-forum.com/u/Marshal_L)\
**Post date:** [November 7, 2010, 6:48pm UTC](https://www.ruby-forum.com/t/forms-extension/198770/2 "2010-11-07T18:48:46Z")

</div>

On Nov 7, 2010, at 8:12 AM, Marshal L. wrote:

> Greetings.
> 
> I’m using the forms and forms-mailer extensions to create a form to be emailed.  
> Most of it is working well except for attachments. I’ve used the \<r:file\> tag to  
> get a file chooser button/dialog and that appears to work. In the “content” page  
> of the form, what gets emailed, I’ve used \<r:read\> to get the uploaded file, but  
> when the form is submitted, a 500 application error is given “for exceptions  
> thrown outside of an action”.
> 
> What am I missing? Thanks for any suggestions.
> 
> –  
> marshal

I don’t really know those extensions at all, but you’ll need to look at  
your log file.

From the root directory of your app, run “tail -500 log/production.log”  
That will show you the last 500 lines of your production log. Look  
there for details about the actual error. If you need more help, copy  
what you find into a pastie and reply back.

-Jim

Jim G.  
Saturn Flyer LLC

> **[Saturn Flyer](https://www.saturnflyer.com)**
>
> Home info

571 - 403 - 0338

---

<div class="post-metadata">

**Author:** ![Marshal\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Marshal\_L](https://www.ruby-forum.com/u/Marshal_L)\
**Post date:** [November 7, 2010, 9:24pm UTC](https://www.ruby-forum.com/t/forms-extension/198770/3 "2010-11-07T21:24:18Z")

</div>

Thanks Jim. Here’s the pastie: [http://pastie.org/1279841](http://pastie.org/1279841)

Is the “Yajl::ParseError” caused by the FormsController trying to parse  
the  
file that was uploaded? If so, what to do about it?

I’m totally lost here, so any suggestions for troubleshooting would be  
much  
appreciated.
