> I suppose you haven't defined the root path in your routes.rb:
> config.root :controller => 'ControllerName'
yes, i defined it.
> If you want to redirect to an url, you can change root_path with the url you
> want ('/', '/devices' or controller.devices_path for example)
>
> before_filter proc{|controller|
> controller.redirect_to controller.device_path unless
> controller.params[:parent_controller]
>
> }
if i try this example i have a similar error, if i try '/devices' i
get a "you are using a protected method" error
> You shouldn't use raise as a controller method (controller.raise), use only
> raise:
> before_filter proc{|controller|
> raise ActiveScaffold::ActionNotAllowed unless
> controller.params[:parent_controller]
>
> }
this seem to works, i get the exception if i go to /interfaces, but if
i click in the nested table in /devices i get the exception too
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
-~----------~----~----~----~------~----~------~--~---