I use ruby to make some scriptings inside an html page.
I made a form to pass variable in an URL.
I need this variable in my ruby code, how can i get this variable ?
I knew URI.parse but to use it, you need to know the URL.
In my case, i need to parse the URL in the web browser,in the address
bar, not a given URL.
Or maybe there’s something a don’t understand about how to use it.
I knew URI.parse but to use it, you need to know the URL.
In my case, i need to parse the URL in the web browser,in the address
bar, not a given URL.
Or maybe there’s something a don’t understand about how to use it.
Maybe we should start over with you describing what you are trying to
do. Your initial posting read like “I have an URL and need to extract
a particular part of it”. That’s what Brian and I have answered. I’m
afraid, you’ll probably have to provide more context or explain where
exactly you are stuck.
Maybe we should start over with you describing what you are trying to
do. Your initial posting read like “I have an URL and need to extract
a particular part of it”. That’s what Brian and I have answered. I’m
afraid, you’ll probably have to provide more context or explain where
exactly you are stuck.
Maybe we should start over with you describing what you are trying to
do. Your initial posting read like “I have an URL and need to extract
a particular part of it”. That’s what Brian and I have answered. I’m
afraid, you’ll probably have to provide more context or explain where
exactly you are stuck.
So on my second page i need to check the URL of this page to retrieve
the variable in order to use it in my script. The var in my exemple is
nas001001.
Maybe we should start over with you describing what you are trying to
do. �Your initial posting read like “I have an URL and need to extract
a particular part of it”. �That’s what Brian and I have answered. �I’m
afraid, you’ll probably have to provide more context or explain where
exactly you are stuck.
I think this lib is for generate html, I didn’t see method to get the
URL
How it works :
I told my web server (apache) to use ruby (.rbx extension)
In my web page, I use ruby to write html which is interpreted by apache.
It looks like :
mywebpage.rbx