Surprisingly, the app exits after submitting a form instead of displaying the params. This is extracted from the system-api-samples app. Tested in RMS 5.1.1. Please help.
This is the form :
Form test
Login
Password
Value1
Value2
Enter number
And this is the controller code :
require 'rho'
require 'rho/rhocontroller'
require 'rho/rhoerror'
require 'helpers/browser_helper'
class JQueryMobileTestController Rho::RhoController
@layout = 'JQueryMobileTest/layout'
include BrowserHelper
@@msg = ""
def index
render :back => '/app'
end
def get_msg
@@msg
end
def do_submit
@@msg = @params
redirect :action => :index
end
end
1 Replies
Looks like @params returns nothing!
Has the syntax changed from earlier versions?
If yes, how do you now access the values posted by a form?