From: kevid on 30 Apr 2010 12:51 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 30 Apr 2010 13:50 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.
|
Pages: 1 Prev: freetds implementation in Ruby Next: File.read(fname) vs. File.read(fname,File.size(fname)) |