[Rails] Recognize path inside a helper

2010-03-19 Thread anler
Hi Folks, I need to get a hash of params from an url path inside a helper. The way I've been doing this was through recognize_path in RouteSet but now throw me an Exception: MethodNotAllowed(I think beacuse the path is an admin path?) There is another way? thanks -- You received this message

[Rails] similar controller::layout functionality

2010-03-08 Thread anler
hi folks, I need help with something, I got a controller and I want be able to use a class method defined in ApplicationController as I do with (let say) the 'layout' function I'm new in Rails and Ruby but I know enough CakePHP to be aware of the conventions a stuff like that The way I'm doing it