Application error

Hello,

I am currently working with a form. Here is my error handling code.

if !@licenseinstance.save
flash[:notice] = “error… blah blah blah”
render :action => “index”
end

When ever I use this render call I keep getting the following…

Application error

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html

Not all time time but sometimes. Has it got somehting to do with the
“render” call? I noticed it started when i changed that form a
“redirect_to” to a “render” so i could display my form error details.

On Mon, 2006-12-18 at 02:01 +0100, Stewart wrote:

Application error

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html

Not all time time but sometimes. Has it got somehting to do with the
“render” call? I noticed it started when i changed that form a
“redirect_to” to a “render” so i could display my form error details.


It’s far easier to debug in development mode where you will get
meaningful errors on screen than in production mode which by design
suppresses the errors.

Generally when I have run into this issue, it’s because the action being
rendered requires reload of instance variables that aren’t automatically
reloaded.

Craig

Craig W. wrote:

On Mon, 2006-12-18 at 02:01 +0100, Stewart wrote:

Application error

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html

Not all time time but sometimes. Has it got somehting to do with the
“render” call? I noticed it started when i changed that form a
“redirect_to” to a “render” so i could display my form error details.


It’s far easier to debug in development mode where you will get
meaningful errors on screen than in production mode which by design
suppresses the errors.

Generally when I have run into this issue, it’s because the action being
rendered requires reload of instance variables that aren’t automatically
reloaded.

Craig

Thanks for that insite Craig,

Seems that it can be a number of issues not just one. Going through the
logs has helped some…