From an article on InfoQ:
Ruby 1.9 brings lots of changes and new features. Many of these will be well-received, such as the new literal hash syntax which among other things lets you do away with the => in calls to methods which take hash arguments, so a call like:
link_to :controller => 'People', :action => "list"
link_to controller: fred, action: "list"
A summary of changes can be found on Eigenclass
UPDATE/NOTE: If you are not aware (like I wasn’t), Ruby uses odd numbered releases to indicate experimental/development releases, and even numbered releases to for production-ready release. So, I’d recommend against updating your production servers to 1.9.??I guess you learn something new every day…if you’re lucky.??
No comments:
Post a Comment