You can get to current controller instance by via controller variable
... simplistic beauty!
def print
    controller                    #current controller
    @request.request_uri  #current URL  
end
Cheers,
Zsombor
On 5/1/05, Karol Hosiawa
<hosiawak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello.
> I am writing a table helper and am wondering how to get
> the current page url to display.
> Or how to get the current controller instance inside a helper ?
> 
> Here''s the code
> 
> module ApplicationHelper
> 
> class Table
> 
>   def initialize(c,options)
>   @collection=c
>   @options=options
>   @columns=Array.new
>   end
> 
>   def print
>    How to get current page''s url here ???
>   end
> 
> end
> 
> end
> 
> --
> Karol Hosiawa
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> 
-- 
http://deezsombor.blogspot.com