Hi! You may want to checkout my Ruby, Rails, iPhone screencasts aggregator at Learnivore.com
-- Thibaut
I’ve been looking for this one a bit, so I thought I would share it here. As I wanted to start using the Rails 2.3+ application template feature, I thought I would create a script that is able to create an empty Rails edge application.
I found most of the required information here. Here it is packaged as a reusable ruby script:
#!/usr/local/bin/ruby
require 'fileutils'
def launch(cmd); puts cmd; throw "Error!" unless system(cmd); end
abort "Syntax: my_rails app_name" unless (app_name = ARGV.first)
abort "Folder #{app_name} already there! Remove it first." if File.exists?(app_name)
launch "mkdir -p #{app_name}/vendor"
FileUtils.chdir app_name
launch "git clone git://github.com/rails/rails.git vendor/rails"
launch "ruby vendor/rails/railties/bin/rails ."
FileUtils.chdir '..'
Now I can enjoy the application template!
To receive each article,
subscribe by RSS
or
by email.
The comments system is brand new - don't be afraid to comment!
All the posts are listed below and on the homepage.
- How to use Google Calendar and Rufus-Google for Basic Time Tracking (November 27th, 2009)
- Using JRuby to prototype VST plugins (November 17th, 2009)
- Introducing Learnivore.com (September 15th, 2009)
- How to create small, unique tokens in Ruby (July 2nd, 2009)
- Detecting Which Ruby Interpreter is Running (JRuby, IronRuby) (March 4th, 2009)
- How to Freeze Gems with Rails >= 2.1 (December 23rd, 2008)
- Thoughts on IronRuby and .Net Testing (December 1st, 2008)
- How to Retrieve Delicious Tags and Number of Bookmarks for a Given Url (November 30th, 2008)
- Fixing Symbol not found _rl_filename_completion_function (November 6th, 2008)
- How to Generate a Gradient for your CSS using RMagick (October 21st, 2008)
- Analyzing Your GMail History (September 18th, 2008)
- Data Visualization with Ruby and RMagick - Where Are Those Bikes ? (March 31st, 2008)
- All-Time Classics: a Selection of Recommended Books for Software Developers (February 23rd, 2008)
- About Sitemaps and their Submission to Search Engines (January 30th, 2008)
