We can get desired format of output, using the advance use of ‘render’. If we need to render some data in different format like STRING, JSON, XML, following are the different ways to do the job.
Method 1 : Render as String def get_string
render :string => ‘This is a sample line’
end Continue reading →
Rhomobile has the ability to capture signature using the Signature API. Signature can be captured in two ways,
1. Full Screen Mode
2. Inline Mode
Note : From Rhodes 3.3.3 onwards, the inline mode has been moved on to RhoElement Vs 2 which is a paid version and requires a license to use it.
To use the Signature API, first, we need to add the camera capability in Build.yml,
Variable is a symbol or name that stands for a value. Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data. Later, when the program is executed, the variables are replaced with real data. This makes it possible for the same program to process different sets of data.
There are five types of variables supported in Rhomobile. These types of variables are explained below.
Camera Permission: In order to use the device camera, we need to get the permission by defining the capabilities in build.yml file.
In this post, we will see how to capture the image using Camera API and store it to app base path so as to gain permission to later upload it to server. We will see the way to store the details of the image on the rhom ( SQLite database ), then later upload the file to server on the time of sync process.