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.
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.
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…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.