inicio mail me! sindicaci;ón


db.networx

working with Rails 2.0, Ruby on Rails, Flex, Flash and …

And that is the Rails way…

I found a nice website maintained by a member of the Ruby on Rails core team. Well, what’s the site all about? You can send Michael and Jamis your web application developed with Ruby on Rails, they will walk through the code and give you hints, what can be done better. Their hints and tips to your application are published on therailsway.com

support with ror support with ruby on rails the rails way

Very nice links for Ruby on Rails

A few days ago I listed some nice links for Java Server Faces. Now it’s time for a fresh set of Ruby on Rails links:

geocoding google maps rails ruby user authentication

Some nice links for ICEFaces, Facelets, Ajax4JSF

During the last month I collected some nice bookmarks. So if you are developing web applications using JSF this might be interesting to you:

General Links:

Tutorials of interest:

Agile Web Development with Rails

Agile Web Development with Rails

Der Erfinden und Entwickler des Ruby on Rails Frameworks hat an diesem Buch maßgeblich mitgeschrieben.  Locker und flockig behandelt werden im Buch die Themen abgearbeitet. Zu Beginn entwickelt man eine komplette Ruby on Rails Anwendung, die auch das Testen nicht auslässt. Im weiteren Verlauf gehen die Autoren mehr ins Detail und geben immer wieder Tips und kleine Hinweise, wie man Probleme lösen kann und fragen die sich zwischendurch aufbauen werden auf folgenden Seiten unglaublicherweise beantwortet. Agile Web Development with Rails kann einem viel beibringen und dient mir regelmäßig als Nachschlagewerk! Interessenten können für wenige Dollar auf den Seiten des Verlags das Buch noch als PDF erstehen.

Praxiswissen Ruby

Praxiswissen Ruby

Ein geniales Einstiegsbuch für jeden, der mit Ruby oder Ruby on Rails arbeiten. Ruby wird hier sehr gut erklärt, mit allen wichtigen Schritten,  die ein Einsteiger benötigt. Geht dann mit vielen Beispielen tiefer in die Materie und was mir besonders gefallen hat, Praxiswissen Ruby hat auch ein Kapitel über Netzwerk, d.h. wie programmiere ich eine Ruby Anwendung die ich im Netzwerk auf verschiedenen Rechnern laufen lassen kann, die dann miteinander kommunizieren. Eines der letzten Kapitel behandelt dann noch in Kurzform das Thema Ruby on Rails, da gibt es aber andere Bücher, die man sich dann noch zusätzlich kaufen sollte.

Google Maps Applications with Rails and Ajax

 

Beginning Google Maps Applications with Ruby on Rails and Ajax

Vor ein paar Wochen bin ich auf der Suche nach Google Maps Integrierung in Ruby on Rails Web Anwendungen auf ein interessantes Buch dazu gestossen. Im Internet wird man nicht immer komplett fündig und es ist immer angenehm mal in einem Buch nachschlagen zu können. “Google Maps Applications with Rails and Ajax” ist für diesen Bereich perfekt geeignet. Wer in seine Webanwendung Google Maps integrieren will, um dort nicht nur einfache Daten anzuzeigen, sondern auch komplexere Daten integrieren will, wird über das Buch hocherfreut sein. Im Anhang des Buches findet sich dann noch die komplette Maps Api!

Developing Ruby on Rails Applications with Netbeans 6

Netbeans 6 being officially released at years end will bring some nice new features. One of these features will be Ruby and Ruby on Rails integration. So far I haven’t found any IDE supporting Ruby on Rails developing like it will be possible with Netbeans 6. You can already play around with it and build some sample applications or try to build one yourself: Just download a Preview of Netbeans 6 here. After you’ve installed it go to Tools and Plugins and install all Ruby and Ruby on Rails Plugins available. More information can be found on Tor’s Blog!

netbeans 6 ruby on rails

Facelets Palette for Netbeans IDE

I contributed my simple facelets and JSF palette to the nbfaceletssupport project initiated by Petr Pisl. You can download it from the following website: nbfaceletssupport.dev.java.net

faceletsPalette

Enjoy!

Tutorial >> Facelets Support in Netbeans

So, you have been using JSF for some time and think about Struts and a perfect page structuring mechanism like Tiles already integrated within. So why isn’t something like that integrated with JSF. Well, I don’t know, but there is a technology simple and powerful called Facelets and I would say it’s quite a lot better than Tiles. And there is more: When you use Netbeans to develop your JSF Application, you can get a perfect Plugin, which gives you support to easily develop your Application with Facelets.

This tutorial will be very small and only show some basic parts of the plugin mentioned above. It should give you the needed information to decide, whether it could be interesting for you.

So let’s get started! What you need are only a few things:

  1. Go to the Netbeans project page and download the latest Netbeans IDE, just click here
  2. Go to the NBFaceletsSupport page and get the latest snapshot of the plugin, to get to the download page click here and to get to the “How to install” page click here.
  3. Get yourself the Mysql Connector. Just download it from this place.

Ready? Then let’s move on…..

Start by creating a new project. Choose “Web” and “Web Application”. Name the application “running” and choose the integrated Tomcat Server. In the next section choose “Facelets” as your framework, then click finish.

The nbfaceletssupport plugin generates some additional files, which will help you to get started. One file is the template.xhtml and the other is the template-client.xhtml — Facelets should be used and developed with using xhtml file extension. However Netbeans doesn’t support code completion, jsf support in xhtml files. And here comes the facelets support plugin in action, it extends netbeans to use all this in xhtml files, it has a complete palette for jsf core, html and facelets components, additionally it gives error messages when writing wrong lines of code. — Let’s start developing a small application that my help us control our running every day or week or whenever. The application should do the following:

At the moment your application structure should look like this:

Application Structure JSF

Facelets lets you structure your webpage, the view of your application. So you can easily define a navigation section, content section and footer section in your application view. When you change something in your navigation it will be available for the rest of your application, without changing it in every page you created.
So all you need to do is to define a template how your pages should look like (you can define many templates, but we will keep it simple here). The facelets support plugin did that already for you, its called “template.xhtml”. In this template you can design the layout of your webpage,

template xhtml

in those sections where you would like to put dynamic content you should use facelets. With “<ui:insert/>” you are able to define a place where dynamic content should be placed. I already know how my navigation should look like, it will be rather static and should be available in almost all pages on my site. I’m able to declare a standard navigation page and include it (”<ui:include/>” in the template. The content of my page will be completely dynamic, so I won’t declare a default content for the template. Here comes the plugin to help you - you could add a facelets component to your page by:

  • using the Palette on the right side of the netbeans IDE, just Drag and Drop the component in the right place on the page. The plugin will automatically add xmlns:ui at the head of your page.
  • using code completion, which will help you to write less code

For this small example application I changed the default css file. You can download it here:

  1. default.css
  2. template.xhtml

Let’s fill our application with content. Running is a nice sport to stay healthy, but I would like to track my running every day and see if I’m getting better. I always go out with my pulse meter and have a timer to track my distance. We could build a small application storing the following data:

  • Date of my run
  • distance
  • time
  • heart frequency
  • average heart frequency
  • temperature
  • weather (like rainy, snowy, foggy, clear, etc.)

This will be a simple application, so we’ll use one table to cover all this attributes in the database. MySQL has a nice Administrator to edit schemas, add columns, etc. - you can also use your favourite editor for it. I generated the following table:

Picture of the Database table

« Previous entries