Main

September 8, 2008

Patches to update rails 2.1.0 to 2.1.1

I've made some patches to update Ruby On Rails version 2.1.0 to 2.1.1 where you make use of the unpacked gems and a subversion repository (running 'rake rails:freeze:gems' has a bad habit of leaving your working copy in a mess as it blows away your 'vendor/rails' directory and recreates it).

Download the patch files by using the following script and apply them into each directory under vendor/rails by running rails-updater.sh.

If you have issues with patching files (like when using svn eol-style:native for files) you may need to grab the failed files by doing 'gem unpack component' and copying those files over and removing the reject files. I've tested the patches on a couple of open source apps and it applied cleanly except to one working copy.



patching file CHANGELOG
patching file Rakefile
patching file lib/action_mailer/base.rb
patching file lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file lib/action_mailer/vendor/text-format-0.6.3/text/format.rb.rej
patching file lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb.rej
patching file lib/action_mailer/version.rb
patching file test/abstract_unit.rb

Another way to fetch the files is to fetch them from the github website using url's like:

http://github.com/rails/rails/tree/v2.1.1//?raw=true

i.e. for the failed lib/action_mailer/vendor/text-format-0.6.3/text/format.rb mentioned above we would fetch it from the following URL - http://github.com/rails/rails/tree/v2.1.1/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb?raw=true.

March 8, 2006

Whats upcoming in Ruby on Rails 1.1

rails.png
Scott Raymond has posted a overview of new features included in the upcoming Ruby on Rails 1.1 release.

I've been using Ruby on Rails for less than a day, and am still working on my models and database schema.

March 7, 2006

Looking at Ruby on Rails

rails.png
Coming from a PHP background I've decided to take a look at Ruby on Rails a rapid application development framework for developing web applications in ruby.

To get your initial environment setup is quite quick and was a lot easier than I was thinking it was going to be. First go and run the rails command and tell it where you want your rails environment to be setup:

/usr/local/bin/rails /path/to/my/first/app

Edit your apache configuration and restart and point your browser to the URL of your ruby on rails install:

Going to start looking at learning ruby.

Afrigator