inicio mail me! sindicaci;ón


db.networx

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

Archive for Ruby on Rails


RSpec Screencasts and Tutorials for Rails

Searching the Web and Amazon I didn’d really find a useful website helping me to learn RSpec in an easy way. The RSpec website is a good starting point. There are already a bunch of examples, but for me it was sometimes hard to follow, especially the mock section.
I recently stumbled upon Peepcode Screencasts again and found 4 Screencasts about using RSpec with Rails. I never thought about searching the page, because every Screencast has to be bought.
Well I now I think differently. I bought all 4 Screencasts and don’t regret it. A 210 Minutes, well structured, Video Tutorial divided into 3 parts. Starting with the Basics you develop a Rails Application using RSpec as the Test Environment. The last Screencast is about using “User Stories” in RSpec, a nice Add-On.
For every RSpec Screencast there is a Preview available.

Generating PDFs with Prawn

Some time ago, I stumbled over a nice gem called Prawn. Prawn is written in Ruby and makes it easy to generate PDF documents. On top of it you can easily integrate prawn in Ruby on Rails. Instead of rendering a html page you just render a PDF document for the user.

The Prawn Documentation comes along with many helpful examples. enjoy!

pdf ruby ruby on rails

5 Rails Tips plus Links

Some useful Tips for Beginners and a bit more advanced Rails Developers.

  1. A Simple Referer, How to redirect a User to the page he wanted to go, after he has successfully logged in.
  2. Adding a Role Filter to your Views, to secure pages/navigational elements only an Administrator/Developer etc. should be allowed to see
  3. Using Dojo in Rails plus Modal Dialog example
  4. Basic Capistrano Tips and tricks
  5. Debugging your Rails Application using Netbeans 6.0.1, easy to handle, setting breakpoints, looking into the session, request.
  6. Some Links for Developing with Ruby and Rails that saved me a lot of time.

Mongrel, RubyGems, Rails 2.0.2 Boot Problem

Is just got Mongrel working with Rails 2.0.2 and RubyGems 1.0.1 on Windows.

What I did was to delete all prior Versions of Mongrel except Version 1.1.3

You can use the command gem uninstall mongrel ( Select the Versions prior to 1.1.3 and delete them, then 1.1.3 will be used by default)

Finding my way to Ruby on Rails deploy with Capistrano2, Mongrel Cluster and Apache2

Well I still haven’t got everything right, but I’m getting very close to it. So far I managed to run Capsitrano2 over my application, export the whole code to a SuSE 10.2 vmware Image, launch a Mongrel Cluster and test it. Next steps will be to configure Apache2 an then I will try to extend the Capistrano2 Script to deploy to more than one machine.

Here are some Links I found:

  1. Codahale ( Very good tutorial about the topic )
  2. Mongrel Webpage ( helped me to configure a Mongrel Cluster and has some additional Information )
  3. Capistrano2 Page ( a more detailed documentation for Capistrano2 would be awesome! )
  4. Capistrano Manual ( Codahale mentioned it on his page, seems to be for Capistrano 1.* — but I will take a look at it )
  5. Scaling Rails ( Jonathan uses Apache 2.2, Mongrel and Mysql5 for meinProf.de )

I’ll add more Links here, as soon as possible.

capistrano capistrano2 mongrel mongrel cluster ruby on rails

A short tutorial about Ruby on Rails and Netbeans 6

I just posted my small Rails tutorial in combination with Netbeans 6 in the Community Docs section of wiki.netbeans.org

You can find it here

Running on Rails or how to build a small running application with Ruby on Rails

I just made a very small tutorial with Ruby on Rails. I only wanted to compare JSF with Facelets and JPA to Ruby on Rails. You can find these tutorials in the Page navigation on the right side of the page or here:

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

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