Click To Globalize: Ready for Rails 2.1!

Posted by luca
on Monday, July 21

Click to Globalize is ready for Rails 2.1!

I spent a lot of time to make this release the best of ever! I know that a lot of time has passed since the latest Rails major release, and I apologize for this.
The official Globalize it seems dead, but the great work of Nate Clark (aka heythisisnate) has made it compatible with Rails 2.1. Thanks Nate!
The Rails Edge now includes a basic support for i18n!

What's Changed?

The first big change is about the configuration, past versions has cluttered a bit your ApplicationController, I know, but now Click uses a YAML file configuration file for locales.

As you can see, it's more readable than put an Hash inside your main controller, and it also take the advantage to separate configuration from logic.

The second change regards the default language, you can use the above file to declare it, or use the Globalize syntax (Globalize::Locale.set_base_language('en-US')), but you have to choose a locale before the app starts.
This because Click needs a secure fallback mechanism, if no active Locale was set, it's always guarantees your application to work.

The third feature is about formatting: you can always choose between textile and markdown without editing ApplicationController, but using the same configuration file.

I removed the deprecated class method ApplicationController#globalize? in favor of the instance one. This means you can use it to turn on/off Click to Globalize, just returning a boolean value:

This version also includes tiny fixes, refactoring and cleanup.




You may wish to learn a bit about Click to Globalize, so I encourage you to visit the official page.
I hope you enjoy your i18n on Rails!

Speaker at RailsConf Europe 2008

Posted by luca
on Wednesday, June 18

I'm proud to announce my presence as speaker at the RailsConf Europe 2008 with a speech on Click to Globalize.

Hands On My Brand New iPod Touch 2

Posted by luca
on Friday, January 18

My iPod Touch

Yesterday i got a 16Gb iPod Touch at the Rome Apple Store: it's a really, really amazing gadget. I love it!

Migration In Progress 0

Posted by luca
on Sunday, December 16

I'm going to migrate this blog on a new server, I apologize for eventual inconveniences.

Click To Globalize: Rails 2.0 Ready

Posted by luca
on Friday, December 14

I have finished to work on Click To Globalize, to made it Rails 2.0 compatible.

What's Changed?

All and nothing: from the user point of view, the plugin has the same behaviors of the previous version. My recent activity was a refactoring, now it:

  • Works with CSRF Killer
  • Works with Prototype 1.6.0.1 and Scriptaculous 1.8.0.1
  • Works with rewritten version of Scriptaculous Ajax.InPlaceEditor
  • Works with new Prototype events handling
  • Uses new Prototype's Element#addMethods and Function#wrap to add methods and AOP
  • Uses Protoype Hash#get, instead of square brackets
  • Uses .html.erb as helper, instead of .rhtml
  • Has a more clean installation/disinstallation process
  • Has DRYed up tests
  • Hasn't prototype.js into the packaging

How To Use It?

Rails 2.0

Rails 1.2.x

For a detailed guide, howtos, snippets, video-tutorials and other infos, please visit the Click To Globalize page.

Click To Globalize: Repository Changes

Posted by luca
on Sunday, December 09

As I previously announced, I'm working on Rails 2.0 compatibility for Click To Globalize.

I decided to move the stuff for Rails 1.2.x to for-1.2.x branch and continue the porting into trunk.

How To Install

Rails 2.0

Rails 1.2.x

Ruby on Rails 2.0: Released 0

Posted by luca
on Saturday, December 08

As I previously announced Ruby on Rails 2.0 was released.

What's new?

Active Record

  • Performances
  • Sexy Migrations
  • Foxy Fixtures
  • XML Deserialization
  • JSON Serialization
  • acts_as Plugins Removal From Core
  • Database Adapters Gems
  • with_scope Protection

Action Pack

  • Resources
  • REST Improvements
  • Multiview
  • Record Identification
  • HTTP Loving
  • Security Improvements
  • Exception Handling
  • Cookie Store Sessions
  • New Request Profiler
  • AtomFeedHelper

Active Resource

  • Official Inclusion In Core
  • Remote CRUD

Action Mailer

  • Bug Fixes
  • Testing Improvements

Active Support

  • Date Extensions
  • Array#rand
  • Hash#except
  • Testing Improvements

..And More

If you want more details read the official announcement or check the Rails APIs.

Ruby on Rails 2.0 Will Be Soon Released 0

Posted by luca
on Thursday, December 06

Ruby on Rails 2.0 will be released in the next hours!!

Rome JavaDay 07

Posted by luca
on Wednesday, November 21

I'll be at the Rome JavaDay 07 as speaker, with a presentation on JRuby and DSL.

See you at the conference!!

Rails To Italy 07 - Q&A Session with DHH 0

Posted by luca
on Tuesday, October 16

Rails To Italy 07 will have a Q&A session with David Heinemeier Hansson, the creator of Ruby on Rails.

If you want to ask something to him, just send a mail to program@railstoitaly.org, the organization will select the questions.

Rails To Italy 07 - Coding Challenge 2

Posted by luca
on Tuesday, September 25

Coding Challenge

The Rails To Italy conference has started a Coding Challenge. The topic will be "Your Favourite Thing" - create a small, interactive web application that is related to your favorite thing or activity*.

Prizes

Prizes are 1 iPhone or iPod touch + 2 iPod shuffle!

Deadline

Submission deadline is the 20th October 2007.


[Rails To Italy 07 - Coding Challenge]

Brand new blog 0

Posted by luca
on Monday, September 03
I have migrated my blog from the old one to this system, please follow here my articles and posts. That blog will not be updated. Thanks, Luca.