# How to add .patch

**URL:** <https://www.ruby-forum.com/t/how-to-add-patch/163914>\
**Category:** Rails\
**Created:** [March 26, 2009, 3:30am UTC](https://www.ruby-forum.com/t/how-to-add-patch/163914 "2009-03-26T03:30:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [March 26, 2009, 3:30am UTC](https://www.ruby-forum.com/t/how-to-add-patch/163914/1 "2009-03-26T03:30:50Z")

</div>

Noob question here: How do I add this patch to activemerchant?

[http://jadedpixel.lighthouseapp.com/attachments/24184/paymentech\_gateway.patch](http://jadedpixel.lighthouseapp.com/attachments/24184/paymentech_gateway.patch)

---

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [March 26, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/how-to-add-patch/163914/2 "2009-03-26T20:06:57Z")

</div>

On Wed, Mar 25, 2009 at 9:30 PM, jko170 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Noob question here: How do I add this patch to activemerchant?
> 
> [Lighthouse - Beautifully Simple Issue Tracking](http://jadedpixel.lighthouseapp.com/attachments/24184/paymentech_gateway.patch)

cd to the src code you want to patch then do something like:

wget -O -  
[http://jadedpixel.lighthouseapp.com/attachments/24184/paymentech\_gateway.patch](http://jadedpixel.lighthouseapp.com/attachments/24184/paymentech_gateway.patch)  
| patch -p1

> **[patch(1): apply diff file to original - Linux man page](https://linux.die.net/man/1/patch)**
>
> patch takes a patch file patchfile containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.

[http://www.google.com/search?q=how+to+apply+a+patch](http://www.google.com/search?q=how+to+apply+a+patch)

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
