Ruby on Rails

Mastering Grails: The Grails event model

Scott Davis post an article about the Grails event model. He writes:

«Everything in Grails, from build scripts to individual artifacts such as domain classes and controllers, throw events at key points during an application's life cycle. In this Mastering Grails installment, you'll learn how to set up listeners to catch these events and react to them with custom behavior.

Building a Web site is a study in event-driven, reactive development. Your application sits idle, anxiously waiting for the user to send in a request. It passes back the response and then goes back to sleep until the next call. In addition to the traditional Web life cycle of HTTP requests and responses, Grails provides a number of custom touch points where you can tap into the event model and provide behavior of your own. »

Source: IBM developerWorks.

Easy Ruby development, the Eclipse way

Robi Sen post an article about developing Ruby applications with Aptana RadRails IDE. He writes:

«Almost three years ago, developerWorks published "Using the Ruby Development Tools plug-in for Eclipse," which introduced some of the features found in the Ruby Development Tools (RDT) plug-in for Eclipse. Current at the time was V0.5. We revisit that tool in this article. Today, RDT is called Aptana RadRails and is available as a plug-in for Aptana Studio or Eclipse. This article introduces some of the plug-in's new features.

The name of the Ruby Development Tools (RDT) plug-in and where to find the code have changed, but the basic function and licensing terms have remained essentially unchanged. If you are new to the idea of developing Ruby applications on Eclipse, start with Neal Ford's article titled "Using the Ruby Development Tools plug-in for Eclipse" to learn how to create Ruby files, how to customize the Ruby editor, how to set up the Debugger and run Ruby from Eclipse, as well as initiate tests from Eclipse. »

Source: IBM developerWorks.

Learning Ruby via IronRuby and C# Part 6

Justin Etheredge post the next chapter of his IronRuby tutorial. He writes:

«Welcome back for part 6 in my learning Ruby via C# series. In the last entry we discussed arrays in Ruby and C#. We saw how Ruby arrays were actually more like Lists or Collections in C#. They are able to be modified, appended, resized, searched, sorted, etc... In this entry we are going to discuss an equally powerful data structure, the hash or associative array. The hash is close to the Dictionary or Hashtable classes in C#. We are going to use the Dictionary class in this entry since it is the more often used class»

Source: CodeThinked.

Identifying unknown music with Ruby

Aaron Patterson post an intresting article in which he shows how to write script for identifying music on Ruby. He writes:

«Ben Bleything inspired me (or rather distracted me from my yak shaving) to get my music library cleaned up and remove duplicates. Unfortunately my duplicates don't necessarily have ID3 tags, and they may be in different formats, so I wrote a gem called "earworm" which will identify unknown music. First I'll give you a code sample, then explain how to get earworm working, and finally explain how earworm works.

Here is the code sample:

ew = Earworm::Client.new('MY Music DNS Key')

info = ew.identify(:file => '/home/aaron/unknown.wav')

puts "#{info.artist_name} - #{info.title}"

Earworm just needs a MusicDNS key and a file name to return information about your unknown audio.»

Source: Tender Lovemaking.

This Week in Rails (July 26, 2008)

The next issue of The Week in Rails is out. Here's smallexcerpr from it beginning:

«Welcome to the fourth edition of This Week in Rails, a weekly (and occasionally fortnightly) report with highlights from the Rails community.

David broke the news of the availability of confirmed and scheduled talks at RailsConf Europe which will be taking place this coming September. As you can see there will be a lot of exciting material this year, too.

The e-book Ruby on Rails 2.1 – What’s New is now available in 7 languages: English, Portuguese, Japanese, Simplified and Traditional Chinese, Italian and Korean. A Spanish version is coming as well. »

You can read more at Riding Rails site.

Learning Ruby via IronRuby and C# Part 1

Justin Etheredge post a short introduction tutorial about IronRuby in his blog. He writes:

«In a previous post I explained how to get Iron Ruby up and running and then in another post I explained how to run an app in IronRuby. If you haven't checked those out, then go do so!

So, if you are like many C# developers you have probably been hearing a lot recently about dynamic languages like Ruby and Python. And most likely, if you are a web developer, you have used a dynamic language. And by that I am talking about Javascript. So, if Javascript is a dynamic language you may be wondering what the big deal is. If you are like many C# developers, it is likely that you aren't a fan of Javascript. And there are certainly many reasons for this, but I think that they are mostly because of differing implementations across browsers, and the fact that the programming paradigm is so different from what we are used to.

Ruby doesn't have these problems. Ruby has a standard implementation which IronRuby is aiming at matching and Ruby operates in similar object oriented fashion that C# does as well. Hopefully in this series I am going to show you how to take some of your C# skills and show you how those can translate into Ruby. At the same time I hope you'll see the power of Ruby and where Ruby might fit into your toolset.»

Source: CodeThinked.

The Week In Rails No. 4

The next issue of the Week In Rails is out. Here's short excerpt from beginning:

«Welcome to the third edition of This Week in Rails, a weekly report with highlights from the Rails community. My apologies for the delay of this post, the past two weeks have been pretty crazy, so this edition covers the most interesting articles and news from the past two weeks.

Let’s kick off this report with a couple of maintenance releases by Jamis Buck. Both Capistrano 2.4.3 and Net::SSH 2.0.3 were published two weeks ago. If you use them, consider upgrading.

Rails 2.1 has been out for a while now, but in case you didn’t have a chance to catch up yet, this post collects several links to useful resources which will help bring you up-to-date....»

You can read more at Riding Rails site.

Developing iPhone applications using Ruby on Rails and Eclipse, Part 2: Displaying iPhone content to the client

Noel Rappin post the second part of his article about developing applications for IPhone. Here's the short table of content of this article:

  • iPhone and the user experience

  • Adding iUI to your Rails application

  • Creating the iPhone layout

  • Using replace to extend your list

  • Where you are, and where you are going

Source: IBM developerWorks.

Living on the Edge (or what's new in Edge Rails) #3

The third issue of Living on the Edge is out. Today tou can read about following topics:

  • Thin support with script/server

  • String#humanize can be customized via inflection rules

  • Allow conditions on multiple tables to be specified using hash.

You can read more on the Riding Rails site.

Unit Testing iPhone apps with Ruby: rbiphonetest

Nic Williams post an intresting screencast about unit testing IPhone applications with Ruby. Here's small excerpt from preface article:

«If you followed some of my recent tweets, this project was previously called “iphoneruby”. And alas, the screencast also calls it “iphoneruby” but that was a crap name. People thought it was a way to run Ruby on the iphone. I can’t do that yet. So, a far better name is ‘rbiphonetest’. [track on summize]

Even if you’ve never touched Objective-C, Cocoa, the iPhone SDK, nor RubyCocoa I recommend watching the video anyway. It should give you hope that if you make the transition to iPhone development you don’t have to go alone without Ruby: your trusty swiss army knife of language/libraries/tools.»

Source: Dr.Nic blog.

Living on the Edge (or what's new in Edge Rails) #2 - Performance improvements

Chu Yeow post a second part of article about changes in Rails 2.1. This time Chu tells about following performance improvements:

  • Faster Erb templates

  • Faster partials and JavaScript helpers

  • RecordIdentifier methods speedup

  • Lazy load cache and session stores

You can read full version of this article on Riding Rails site.

This Week in Rails No.2

The Rails Community posted the seccond issue of This Week in Rails, a weekly report with highlights from the Rails community. This issue contains new on the following topics:

This Week in Rails

The Riding rails site starting to post the weekly column called «This Week In Rails» which will covering all main news in Ruby on Rails world.The first issue is out an you can read it on Ridings Rails site.

Capistrano 2.4.0

Capistrano 2.4.0 released with following features:

  • death to “git fetch --tags“

  • cap -d

  • New and improved sudo helper

  • :runner vs. :admin_runner

  • deploy:upload with globs

  • before/after hooks use well-defined server scope

  • host reported correctly from SCM output

  • Disable asset timestamp normalization

Source: Jamis Buck blog.

Free Rails 2.1 Book

You can download free electronic version of new book about Rails 2.1 framework, titled, «Ruby on Rails 2.1, What's new?». This book describes all new features of version 2.1 Rails framework. You can download this book oon several various languages from Riding Rails site.

Syndicate content