From: kevid on
Hi all,

Does anyone knows how to access a method's url within the method

for instance;

def index
---
--
-- #some code that will append a parameter to the url that will call
the show method.
show
end

def show
url = (show method's url with the appended parameter )
puts url # => http://localhost:8080/app/Input/show?cv=xxxxxxxxxx
end

The idea is to be able to access the appended parameter within the
show method.

...will appreciate any idea.

From: Marius Nünnerich on
On Fri, Apr 30, 2010 at 18:55, kevid <alumsimportant(a)yahoo.ca> wrote:
> Hi all,
>
> Does anyone knows how to access a method's url within the method
>
> for instance;
>
> def index
>  ---
> --
> -- #some code that will append a parameter to the url that will call
> the show method.
> show
> end
>
> def show
> url = (show method's url with the appended parameter )
> puts url     # => http://localhost:8080/app/Input/show?cv=xxxxxxxxxx
> end
>
> The idea is to be able to access the appended parameter within the
> show method.
>
> ..will appreciate any idea.

Please do not cross-post.