This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Loading…
Labels












Btw. Both controllers uses the same model user.rb (placed directly in the app/models directory -- Non-nested).
I very much doubt any interference between the two controllers. However, "+response_for+ fails for the nested users-controller!"
In what way does it fail? It does the default behaviour? It sends you to a particular location?
If you could let me know that, we could definitely clean this stuff up.
Well, I can't figure out if it's being ignored or simply doesn't do anything.
admin/users_controller.rb
response_for :create do
redirect_to A end
users_controller.rb
response_for :create do
redirect_to B end
Hitting the nested controller will trigger the non-nested controllers redirect_to. I have no idea why though.
And you are suuuper sure that the code in those response_for's are actually being executed?
If you are expecting A, getting B, and B is the default behaviour, then this shouldnt' be a problem.
See, m_r doesn't keep some global list of versions of itself or anything. In fact, it would be hard to get it to know where else its installed (without some hooks or something). It just extends the local UsersController. So, all the m_r code and concerns are basically wrapped up in each Controller.
If you want to privately send me some of your problem code, I'd be happy to look at it. Also, I'd need to know what exact version of Ruby and Rails you are running.
-hampton.
I'm going to compile a better description, including some examples and I will PM it to you. It will however take a little time. I need to be absolutely suuuper sure that I'm not making a mistake.
Best regards
Emil