> before_filter proc{|controller|
> controller.redirect_to root_path unless
> controller.params[:parent_controller]
>
> }
first thanks for your help (i'm a rails newbie), but it doenst works
here. If i put that exactly in interfaces_controller i get this:
undefined local variable or method `root_path' for
InterfacesController:Class
doesnt matter if i use root_path or :devices (for example). If i try
to raise an exception i get:
private method `raise' called for #<InterfacesController:0xb7485050>
Any idea?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---