I am trying to do barcode scanning from the sample api given in
MotorolaRhoMobileSuite2.0.5. I need to do this for Windows Mobile
platfrom and Motorola SSB-MC9190G-30 device. Here is my build.yml file:
app_type: “rhoelements”
name: “SampleApi”
applog: “rholog.txt”
version: “1.0.7”
vendor: “rhomobile”
wm:
extensions:
- barcode
capabilities:
- camera
- non_motorola_device
While running the application, I am able to see the images. But, when I
click on scan link for the image, it shows the below error in the
screen:
“E500 error page. Happen when non ::Rhom::RecordNotFound exception
raised
uninitialized constant BarcodeRecognizerController::Barcode”
And in console, I am getting the below exception
const_missing: BarcodeRecognizer
require_compiled: BarcodeRecognizer/controller
const_missing: Barcode
App error: uninitialized constant BarcodeRecognizerController::Barcode
C:/MotorolaRhoMobileSuite2.0.5/ruby/lib/ruby/gems/1.9.1/gems/rhodes-3.3.3/lib/framework/rho/rho.rb:1374:in
`const_missing’
show error: #<NameError: uninitialized constant
BarcodeRecognizerController::Barcode>
As per logs, it’s causing error due to the BarcodeRecognizer.find(:all)
statement mentioned below.
def index
puts “Barcode index controller”
@barcodes = BarcodeRecognizer.find(:all)
render :back => ‘/app’
end
I didn’t find the BarcodeRecognizer class anywhere in the api.
Could any body help me to resolve the issue?
Thanks in advance.
Regards,
Santosh.