I think I was pointing you in the wrong direction. If you want dynamic
data in your 500 error page you will need to rename public/500.html
into 500.erb and add

def rescue_action_in_public(exception)
    render :file => 'public/500.erb'
end

to your application.rb. This will render the 500 page based on erb..
Lets say you have a current_user method which points to the currently
logged in user you could write:

Dear, <%= current_user.name %>.
An error has occured.. Please stay tuned..


Hope this helps?!



lg // andreas

--
DynamicDudes

Lightweight Ruby on Rails application development
http://dynamicdudes.com
http://rubyphunk.com




On Mon, Oct 20, 2008 at 12:52 PM, Sunny Bogawat
<[EMAIL PROTECTED]> wrote:
>
> But how can i add a dynamic data in it?
>  can you tell me how to set in my own directory? please
> --
> 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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to