Method url

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.

On Fri, Apr 30, 2010 at 9:50 AM, kevid [email protected] wrote:

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

puts request.url

end

BTW, the API docs are your friend :slight_smile:

Hassan S. ------------------------ [email protected]
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs