For the sake if completion:

slight changes to the above:

:subsite => 'admin' not :admin

and

 def do_block
    do_transition_action :block do
      flash[:notice] = 'BANHAMMERED'
      redirect_to :back, :status => 303
    end

Worked great. Matt said that the 303 is some sort of request bugfix in
1.3.0. Don't ask me :) I'm not that good



On Mar 12, 3:38 pm, Matt Jones <[email protected]> wrote:
> On Mar 11, 2012, at 6:59 PM, Scorpio wrote:
>
> > I went along with all your suggestions added acting, user and subsite
> > params. I also deleted the custom actions hoping the context would fix
> > it. I deleted the param from the button as well. Still getting
>
> > Routing Error
>
> > No route matches "/admin/users"
>
> > after the redirect same as before. Any ideas ?
>
> You'll need to specify the redirect path directly, since the default isn't 
> working for you:
>
> class Admin::UsersController < ApplicationController
>
>   auto_actions :all
>
>   def do_block
>     do_transition_action :block do
>       flash[:notice] = 'BANHAMMERED"
>       redirect_to :someplace
>     end
>
> end
>
> --Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to