CheddarGetter Beginner
Hi! I'm looking to implement CheddarGetter into a rails app I've built. I've decided to go with the "cheddargetter" gem since it's the only one that provided documentation. As a beginner developer, however, I am unsure where in my models/controllers I should put in what. Any suggestions?
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Paul A. on 18 Jul, 2010 04:06 AM
better yet, can someone provide a good (working) example of Mousetrap or cheddargetter?
Thanks!
Support Staff 2 Posted by Marc Guyer on 18 Jul, 2010 09:43 PM
Hi l4rk & Cameron! Would you guys mind pointing Paul in the right direction?
3 Posted by Charlie Zhao on 17 Oct, 2010 03:56 AM
I am interested in this too. An example with controller/model/view which is using cheddargetter gem will be appreciated.
4 Posted by Phil on 25 Oct, 2010 02:38 PM
Using this library: http://github.com/ads/cheddargetter. You can do something like the following in you controller...
5 Posted by Jon Larkowski on 26 Oct, 2010 03:23 PM
Here's an extract of some actual code I have that consumes my Mousetrap gem The concepts may be general enough to help with whatever wrapper you choose.
A few notes:
Controller
Subscription model
Portion of the view
6 Posted by joshua on 25 Nov, 2010 04:30 PM
Thanks for this detailed example Jon. Am I correct in assuming that you save the credit card number in your local subscription table? Is that a problem for PCI compliance? So far I am only storing the last 4 digits locally.
7 Posted by Jon Larkowski on 25 Nov, 2010 05:04 PM
@joshua You're welcome. No, I don't save the full credit card number. That would definitely be a PCI issue. Want to avoid as many of those as possible. ;) Like you, I just store the last four digits.
8 Posted by joshua on 25 Nov, 2010 07:53 PM
Jon, thanks for the quick reply. Just one question then - where does the following variable live if the model has no credit card fields?
9 Posted by Jon Larkowski on 13 Dec, 2010 07:55 PM
@joshua Sorry for the delay. I just had to quit my job and move cross-country quick. ;)
I do store the
credit_card_expiration_month
field in the database. Pretty much everything except the actual credit card number is stored. Here's the relevant portion of the schema.rb file.10 Posted by joshua on 13 Dec, 2010 08:15 PM
Thanks Jon - i figured that bit out. I was wondering if this is a PCI issue, storing some but not all CC info?
Anyway, thanks for the assistance, this helped me move along with my setup.
Dean closed this discussion on 16 Jan, 2013 03:41 PM.