:available_to => "User" breaks lifecycle
Reported by Tiago Franco | January 18th, 2009 @ 11:59 PM | in Hobo 1.0 - Final
the example of friendship on hobo's cookbook throws a 500 error on the index action of the controller (e.g. http://localhost:3000/friendship...>
If the line :available_to => "User" is deleted, the controller doesn't throw the error
Comments and changes to this ticket
-
Tiago Franco January 20th, 2009 @ 11:38 AM
A weird thing happens on this error, the stacktrace of the framework is only printed in development.rb. Only the server stacktrace is availabe.
-
Tom Locke March 12th, 2009 @ 11:10 AM
- Milestone set to Hobo 1.0 - Final
- State changed from new to open
-
Bryan Larsen May 6th, 2009 @ 09:20 PM
- Tag changed from crash, lifecycles to defect, lifecycles
A better way of avoiding this error is to rename the creator from request to something else.
Even
:available_to => all
causes the error. By making it available, it becomes "publishable", so Hobo tries to create a route and methods for the action. "request" or "do_request" must be a magic method name.I'll change the documentation to use "invite" instead of "request".
-
Tiago Franco May 6th, 2009 @ 10:17 PM
Is there a particular reason for the "request" to throw an error?
-
Bryan Larsen May 7th, 2009 @ 03:10 PM
Fix pushed to hobocookbook on github. Still need to push the changes to the web site.
-
Bryan Larsen May 13th, 2009 @ 02:44 AM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป