Redirection problem on auto_actions
Reported by Tiago Franco | June 21st, 2009 @ 01:23 PM | in Hobo 1.0 - Final
I a comment model, that is used to comment games and pitches.
comments.rb declares the following relations:
belongs_to :user, :creator => true
belongs_to :pitch, :accessible => true
belongs_to :game, :accessible => true
When a comment is in pitches/show the user is redirected to home
(/).
When a comment is in games/show the user is not redirected.
In both cases the comment is created.
If I change the order of the relation's declaration to:
belongs_to :user, :creator => true
belongs_to :game, :accessible => true
belongs_to :pitch, :accessible => true
Then:
When a comment is in games/show the user is redirected to home
(/).
When a comment is in pitches/show the user is not redirected.
There may be an issue with the Hobo routes, but I was unable to get to the root of the problem.
Comments and changes to this ticket
-
Tiago Franco June 21st, 2009 @ 01:24 PM
- no changes were found...
-
Tiago Franco June 21st, 2009 @ 01:26 PM
typo on the first phare:
I have a comment model, that is used to comment games and pitches.
-
Bryan Larsen October 21st, 2009 @ 03:35 PM
- State changed from new to resolved
- Tag changed from routing to defect, model-controller
- Milestone set to Hobo 1.0 - Final
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 ยป