frozon / passbook

Passbook gem let's you create pkpass for passbook iOS 6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use it in sinatra app???

rubyon opened this issue · comments

I want to use this gem... in sinatra...

is it possible???

Hello, no idea about sinatra I'll check that point today and let you know about the results

Thank you!!! very much!!!

I have updated the README with a few points to get you pointed in the right direction. Here are the key points.....
You will need to require sinatra, passbook, and active_support/json/encoding in your sinatra file. you will need to include the 'active_support' gem (we will eventually automatically include this in the gem). Don't generate the config file via rails generators. Instead either in your sinatra file or a file that is included in it add the configuration options as listed in the readme. Then stream it or send it as a file.

And yes it is possible. See the Readme for an example.