# Installing a patch

**URL:** <https://www.ruby-forum.com/t/installing-a-patch/125735>\
**Category:** Rails\
**Created:** [January 11, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/installing-a-patch/125735 "2008-01-11T16:11:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lundie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lundie](https://www.ruby-forum.com/u/lundie)\
**Post date:** [January 11, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/installing-a-patch/125735/1 "2008-01-11T16:11:07Z")

</div>

Hi,

I have an issue that is mentioned in this ticket on Rails Trac:  
[http://dev.rubyonrails.org/ticket/10101](http://dev.rubyonrails.org/ticket/10101).

I would like to try this patch, and see if it solves the issue I am  
having, but I am confused on how to properly install it. Do I have to  
be on Edge Rails, or can I stay with 2.0.2? If I apply the patch, is  
there an easy way to get rid of it? What is the proper way of applying  
it?

Thanks for your help!

Ryan

---

<div class="post-metadata">

**Author:** ![lundie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lundie](https://www.ruby-forum.com/u/lundie)\
**Post date:** [January 11, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/installing-a-patch/125735/2 "2008-01-11T16:46:20Z")

</div>

On 11 Jan 2008, at 15:09, lundie wrote:

> it?  
> You can try 🙂  
> If edge and 2.0.2 have diverged too much the patch might not apply  
> properly, but if they haven’t then you’ll be ok.  
> You need to have rails installed in vendor/rails. Then download the  
> patch from the ticket, cd to vendor/rails and type

patch -p0 \< path/to/the/patch.diff

If things go wrong it will tell you. To revert it just do an svn  
revert to remove the change (or rollback stuff in the usual way if  
you’ve committed it).

If I may pimp myself I have a tiny little script at  
[https://svn1.hosted-projects.com/fcheung/apply\_ticket/ApplyTicket-0.1.0.gem](https://svn1.hosted-projects.com/fcheung/apply_ticket/ApplyTicket-0.1.0.gem)  
which makes this a little easier: just cd to vendor/rails  
and type apply\_ticket 10101

Fred

---

<div class="post-metadata">

**Author:** ![lundie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lundie](https://www.ruby-forum.com/u/lundie)\
**Post date:** [January 12, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/installing-a-patch/125735/3 "2008-01-12T14:17:10Z")

</div>

Thats great! Thanks for your help.

---

<div class="post-metadata">

**Author:** ![lundie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lundie](https://www.ruby-forum.com/u/lundie)\
**Post date:** [January 11, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/installing-a-patch/125735/4 "2008-01-11T16:55:46Z")

</div>

On Jan 11, 2008, at 4:45 PM, Frederick C. wrote:

> If I may pimp myself I have a tiny little script at [https://svn1.hosted-projects.com/fcheung/apply\_ticket/ApplyTicket-0.1.0.gem](https://svn1.hosted-projects.com/fcheung/apply_ticket/ApplyTicket-0.1.0.gem)  
> which makes this a little easier: just cd to vendor/rails  
> and type apply\_ticket 10101

Wonderful!
