Topic: Qr Code Tracking Service

Hi,I'm new to this forum and Rails in general.
But to get the ball rolling and learn more i've challenged my self to make a Qr Code Tracking-site.

qrcodetracking.com is the site i'm trying to replicate.
Maybe i've taken water over my head in this project but i got a lot of free time and is really eager to learn more.

So far i've done an easy login/registration to the site with Devise.
Now i'm trying to figure out how the barby-gem (gem for generating barcodes) is working.As I said, i'm new to this and would love to get some feedback/directions on where to go next?
For example, how would you do the "generate_qr_code"-function? How would you go on and organize the database?

barcode = Barby::QrCode.new('http://google.com', :level => :l)
File.open('qrcode.png','wb') do |f|
f << barcode.to_png(:xdim => 20)
end

That is what i got right now, but it doesn't overwrite the qrcode.png in the public/images/ instead it is saved to the root directory?
I also tried the rmagick-outputter but the image just comes out blank, have no clue why?

I'd also like if someone kind could help me out with what kind of controllers/models you think would be needed for this site?

Sorry for my sloppy english. smile
I'll be back with more questions later.

Mats

Last edited by matsmaatson (2011-05-18 07:51:38)

Re: Qr Code Tracking Service

  def create_qr_code
    
    barcode = Barby::QrCode.new('DATA', :level => :l)
    File.open('qrcode.png','wb') do |f|
    f << barcode.to_png(:xdim => 20)
    end
  end

This is my first create_qr_code function, but i don't understand how to get the data from the form to be put into the function?
I'm also wondering if i am suppose to put this function in the controller or the model, i'm thinking the model and then do something like @qrcode.create_qr_code in the controller-create?
And the last question right now, how could I make this function save different qrcodes images everytime in the /public/images/qrcodes/-folder?

Re: Qr Code Tracking Service

The Equipment Tracking is one of the best applications applied for the equipment which includes non-expandable , tangible, free standing and having a acquisition cost is tracked. Ti start the process of tracking the equipment is assigned a code by equipment management to a specific department. The coding will be done after the check up and all other functions have been performed. There are some crazy testers in my office where I am working, who provides the best codes and testing results , daily deal for the best with the innovation and ease ticketing solution using QR codes. The technology used here creates a completely paperless experience with the secured environment with out annoying paper to printout, forget, or lose. Produce some more attachments for the more detailed view.



QR code generator
QR codes

Re: Qr Code Tracking Service

QR codeis developed faster and faster, if we cannot let us catch up with it, we will fall behind.

Re: Qr Code Tracking Service

Yes, you are right. Today is a information world. As for QR Code, I also created in C#. What I used was this C# QR Code barcode generator library. I believe in five years, you may find this tool is too old. But now I think this tool is good, for it has detailed tutorial of creating barcode in C#. It's easy to use. So only keep learning can we follow the world.