Pardel’s Blog

crushed by equilibrium

Archive for Ruby on Rails

Why I think Ruby on Rails is an ideal web development environment

Here is a nice post from Andy Jeffries.

I totally agree with his reasoning (and I’m happy he listened to me ;) ) and here are couple of things can be added:

  • 1. MVC Design Pattern
    Rails goes even further than that - it forces you to use MVC properly. For example, one can’t access session variables in the models.
  • 3. Integrated Testing Framework
    Symfony’s testing is pretty buggy (even their newly Lime library) whilst Rails provide simpler to understand and write tests. Also, as a general Ruby argument, writing Ruby code is much more natural that writing PHP, and this reflects everywhere.
  • 4. Easy Enhancements to Active Record Models
    The main difference on the validation is the fact that Symfony validates views whilst Rails validates models. I must admin, I can’t see the point of validating views - I need to validate the data that goes in the DB not the one received from the user (they are not always the same).
  • 5. Built-in Development Web Server
    Rails used to come with Webrick but they changed the default to Mongrel now. This is very good and fast enough for development. The server you use for deploying is a different story and it’s usually up to the sysadmins to pick one - they know best.

Another point to add to the list is:

  • Symfony has way too many files
    It always amazes me why people want to make things more complicated than they should be. In Symfony evey little thing (helper, validator, view, action, etc) has its own file. Also, I didn’t get the reasoning behing using a 2 different files to display success and error outputs (indexSuccess.php and indexError.php). And don’t get me starting on the naming conventions and file formats.

Developers take REST with Rails

Tom Stuart of LRUG wrote a good article about Rails 2.0 in… Guardian!!!

RAILS 2 IS HERE

DHH just posted a message on the Rails mailing list announcing Rails 2.0: http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done

Rails 2.0 is finally finished after about a year in the making. This is a fantastic release that’s absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish. We’ve even taken a fair bit of cruft out to make the whole package more coherent and lean.

Rails 2.0: Release Candidate 2

http://weblog.rubyonrails.com/2007/11/29/rails-2-0-release-candidate-2:

After another batch of fixes, tweaks, and buckets of polish, we’ve prepared the hopefully last step before 2.0 can go final: Release Candidate 2. If nothing major pops up, expect the final version to land within the next week or two at the most.As usual, we got the latest gems on the gems.rubyonrails.org server and there’s a RC2 tag as well. Please put this final test through the ringer so we can get a clean 2.0.0 final release.

If you haven’t kept up to date on what’s new in 2.0, have a look at the original preview release announcement. The gem version for this release is 1.99.1. Enjoy!

Ruby on Rails 1.2.6

The rails core team has released ruby on rails 1.2.6 to address a bug in the fix for session fixation attacks(CVE-2007-5380). The CVE Identifier for this new issue is CVE-2007-6077.You should upgrade to this new release if you do not take specific session-fixation counter measures in your application.  1.2.6 also fixes some regressions when working with has_many associations on unsaved ActiveRecord objects.

Older entries »