Today “Ruby on Rails 1.0″:http://www.rubyonrails.org/ was finally released. There were two final release candidates that popped up over the last two weeks so I’m not surprised to see it here today. But what is surprising is the entire redesign of the Rails website. Check out “David’s post”:http://weblog.rubyonrails.org/articles/2005/12/13/rails-1-0-party-like-its-one-oh-oh to learn more about 1.0!
If you’re interested in starting up a Rails application of your own I recommend looking into grabbing an account at “Site5″:http://www.site5.com, “DreamHost”:http://www.dreamhost.com, or “TextDrive”:http://www.textdrive.com as they all offer stable shared hosting environments for Rails and should be upgrading their servers to 1.0 in the next couple of days if they haven’t already!
Dkoh Says:
4:01 pmDec 13what’s so good about ruby on rails that you can’t do on php
Jim Says:
12:31 amDec 14It’s not that you can do anything different. It’s that you can do it much easier and much quicker. Just look at these code snippets from projectionist.
“This one”:http://project.ioni.st/post/478#post-478 allows you to interpolate a string with variables in a specified order.
“%2$s is first, %1$s is second” % ['first', 'second']
#=> “second is first, first is second”
This “one”:http://project.ioni.st/post/466#post-466 takes an array ‘ppl’ and separates the array into two new arrays based on the length of each item in the parent array. All in a single statement. It’s a very powerful language and rails is an equally impressive framework.
ppl = %w(Sam Patrick Marcel Chad)
short_names, long_names = ppl.partition{|p|
p.length [["Sam", "Chad"], ["Patrick", "Marcel"]]