Skip to content

Commit f1b2890

Browse files
Update README.md
1 parent a687b31 commit f1b2890

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ruby/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ To use WebForms Core, first copy the WebForms class file in this directory to yo
66
require 'sinatra'
77
require_relative 'WebForms'
88

9+
get '/' do
10+
erb :view
11+
end
12+
913
post '/' do
1014
if params['btn_SetBodyValue']
1115
name = params['txt_Name']
@@ -23,13 +27,11 @@ post '/' do
2327

2428
return form.response
2529
end
26-
27-
erb :form
2830
end
2931

3032
__END__
3133

32-
@@form
34+
@@view
3335
<!DOCTYPE html>
3436
<html>
3537
<head>
@@ -62,4 +64,4 @@ As you can see, the WebFormsJS script has been added in the header section of th
6264

6365
The latest version of the WebFormsJS script is available through the link below.
6466

65-
https://github.com/elanatframework/Web_forms/blob/elanat_framework/web-forms.js
67+
https://github.com/elanatframework/Web_forms/blob/elanat_framework/web-forms.js

0 commit comments

Comments
 (0)