Blog

The News

Blog

Willkommen in unserem Blog. Hier finden Sie zurzeit hauptsächlich Beiträge zu verschiedenen Technologien und Programmiersprachen. Teilweise bloggen wir auf Deutsch und dann wieder auf Englisch, je nachdem was gerade für ein Thema anfällt. Viel Spaß beim Lesen!

nifty_errorpages gem

Today I wrote a little gem called NiftyErrorpages. This gem contains a little Rails 3.2 engine for generating dynamic error pages. If an error occures, normally Rails will render a static 404.html, 422.html or 500.html file from the public folder. NiftyErrorpages allows you to handle all the rendering through an errors_controller with views. You can easily customize your views, layout, helper and controller.

The gem name is derived from the awesome NiftyGenerators Gem from Ryan Bates, because…

23.04.2013
Matthias Frick
Ruby on Rails
0 Kommentare
Weiterlesen

a short story about ruby modules and classes

Whats the difference between modules and classes in ruby? This is a good question, and rails beginners often miss the point. In this blogpost I do not want to explain the explicit difference between modules and classes.

For detailed information just check out these links or google a bit :-).

I want to explain how you could manage the following structure in a pure ruby project:

07.11.2012
Matthias Frick
Ruby on Rails
5 Kommentare
Weiterlesen

Contact Form gem for Rails3

Today I wrote a little gem which contains a contact form. It is build with the enginex engine skeleton and is a full mountable rails engine. You can easily integrate the code into your rails project and you can customize it the way you like.

The gem contains a form which gets send by mail to an user. The user gets an auto reply mail and the website administrator gets a mail with the contact data. Just…

20.08.2012
Matthias Frick
Ruby on Rails
3 Kommentare
Weiterlesen

use view helper methods in controllers in rails 3

Sometimes it is comfortable to use view helpers in controller methods to customize things like pluralisation, links, mailto´s, etc . Rails provides a lot of view helpers, which can be used in controllers or normal helpers. In Rails 3 it is possible to call view_context inside a controller. This call will create a new ActionView instance for a controller, then all view helper methods will be available through this instance and you can simple do stuff like this:

03.08.2012
Matthias Frick
Ruby on Rails
0 Kommentare
Weiterlesen