Hello all,

Currently, we have a membership website application where our customers
create a membership based website secured by a login.  We allow our
customers to create pages which they provide html for.  Well, sometimes
they put incorrect urls for their html (ie.. mostly images:
/images/blabla.gif), which Rails thinks is trying to pull from our
server.  It then throws a "No route error".  With images these are just
shown in the error logs and not to the end user.

I'm wondering if there is a good way to either:

1. Catch the image url error as a customer provides the html for their
page

--OR--

2. Catch so it isn't logged.

Also, sometimes they link to javascript files which also can be
incorrect, so I guess it wouldn't only be images either.  And is there a
way to tell a difference between "No route" errors?

Thanks.

-- 
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