#449 ✓resolved
Tiago Franco

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Pages