Hey santosh,

This isn't a ruby language issue: you should be looking to contact Motorola'=
s support. Sounds like you might be missing a Motorola library or something.=
=20

Jams

On Jul 5, 2012, at 10:43 AM, santosh panigrahy <lists / ruby-forum.com> wrote:=


> 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
>=20
> 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:
>=20
> "E500 error page. Happen when non ::Rhom::RecordNotFound exception
> raised
> uninitialized constant BarcodeRecognizerController::Barcode"
>=20
> And in console, I am getting the below exception
>=20
> 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>
>=20
> As per logs, it's causing error due to the BarcodeRecognizer.find(:all)
> statement mentioned below.
> def index
>    puts "Barcode index controller"
>     @barcodes =3D BarcodeRecognizer.find(:all)
>    render :back =3D> '/app'
>  end
>=20
> I didn't find the BarcodeRecognizer class anywhere in the api.
>=20
> Could any body help me to resolve the issue?
>=20
> Thanks in advance.
>=20
> Regards,
> Santosh.
>=20
> --=20
> Posted via http://www.ruby-forum.com/.
>=20