Hi Anuj,
Thanks for the quick reply.
You were right, I was able to work it out with the help of the people
on the Ruby on Rails group and the use of the console. It was a
mismatch of the string 'Gbarcode::BARCODE_128' when it was looking for
an INT.
To get around it, I just got the int value of each barcode type using
the console and stored it in the database. So instead of calling the
string, it calls the int and works great.
Thanks again!
Jonathan
On Jan 17, 2:53 am, Anuj Luthra <
anuj.lut...@gmail.com> wrote:
> Hi Jonathan,
>
> I'm overseas on a vacation, will get back home in about 3 weeks and have a
> look at it. In the mean time, why don't you have a look at source.... its
> not big ... about 3 files :)
>
> At first looks, it seems that the way you are passing in Gbarcode constants
> is wrong. Storing the constant in db and then fetching it will give you a
> string like 'Gbarcode::BARCODE_128' which will cause mismatch of string and
> int; just like the error message hints at.
>
> have fun, will get in touch soon.
>
> regards,
> Anuj.
>
> 2009/1/16 roadtrippr <
jonathan.mulc...@gmail.com>