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.