Verbose error message for content_type failure
Reported by Aaron Wheeler | April 13th, 2008 @ 03:50 AM | in 0.9.4
Patch that provides an error message with a more detailed explanation of why a call to content_type failed.
The need for this message arose when using merbful_authentication in the following way:
class Blogs < Application
provides :html
before :login_required
def index
provides :rss
...
end
end
Here, login_required is called before provides(:rss) is called. When login_required checks for the content_type on the /blogs.rss request, it appears as if the rss format is not provided.
Comments and changes to this ticket
-
Ezra Zygmuntowicz April 18th, 2008 @ 12:11 AM
- → State changed from new to resolved
- → Milestone changed from to 0.9.4
Thanks for the patch! applied.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
