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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Apr 30, 2010 at 9:50 AM, kevid <alumsimportant-FFYn/CNdgSA@public.gmane.org> wrote:> def show > url = (show method''s url with the appended parameter ) > puts url # => http://localhost:8080/app/Input/show?cv=xxxxxxxxxxputs request.url> endBTW, the API docs are your friend :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.