I want to retrieve information from a form I have created using HTML and CSS to my Ruby program and apply some operation and redirect to another page accordingly. Since I am a beginner so I don't have much knowledge about web development so if please anyone could help!!!
Asked
Active
Viewed 23 times
-1
-
You're not gonna get any help if you don't post any code. What do you have so far? – Sam Chahine Feb 24 '16 at 04:56
-
Are you using any web framework like Rails, Sinatra, Hanami, ? – Pascal Feb 24 '16 at 06:56
-
No I am not using any of the frame work – Sarthak Feb 24 '16 at 10:23
1 Answers
0
Just guessing what you want, if not correct please provide more info and the meanigfull parts of what you tried in code.
Take a look at the accepted answer for my question at https://stackoverflow.com/questions/11724201/use-browser-as-gui-in-ruby
Here part of what Justin Ko answered
require 'watir'
b = Watir::IE.new
begin
b.goto('file:///C:/Documents%20and%20Settings/Setup/Desktop/test.htm')
begin
sleep(5)
end until b.button(:id, 'submit').value != "OK"
name = b.text_field.value
ensure
b.close
end
puts name