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!

Capistrano single file deployment

Sometimes it happens, that you make a change in one of your project files, because you forgot something. But now you do not want to create a completely new release, because it is not necessary for just one file. The deployment gem capistrano offers a good possibility for removing your problem.

Assumed you changed your 'app/controllers/application_controller.rb' and your deployment process works with capistrano, then you can execute the following steps:

 

1.

20.08.2011
Matthias Frick
Ruby on Rails
6 Kommentare
Weiterlesen

Sortable List in Rails3 with jQuery

Today I had to programm a sortable projects list for a customer. I searched for good options and found the following tutorial:

http://webtempest.com/sortable-list-in-ruby-on-rails-3-almost-unobtrusive-jquery/

It is very good explained and really easy to do. You just have to follow the few steps in the link above.

Summarized the sortable list is created with the gem gem "acts_as_list" and with jQuery.

More links:

17.08.2011
Matthias Frick
Ruby on Rails, JavaScript
2 Kommentare
Weiterlesen

jPlayer - The jQuery HTML5 player

In the rework of the homepage from the Jazz-musician Sabine Beese I integrated a new music player. I decided to try out the jPlayer. The jPlayer is a jQuery HTML5 player with a flash fallback function.

 

  • More information about this player you can find here: [LINK]
  • I followed the Quick Start Guide to include this player in the homepage. [LINK]
  • The jPlayer is an OpenSource…
09.08.2011
Matthias Frick
JavaScript
4 Kommentare
Weiterlesen

Rails3 middleware for redirecting old urls

Yesterday I deployed my new Frick-Web 4.0 website. In the context of the refactoring of my website I restructured my database in some cases. For that reason a few of my URLs changed and I have to be mindful of not loosing my google ranking and my URLs. So I decided to write a Rails middleware. This middleware handels all my redirecting, if old URLs gets called.

My middleware:

class OldUrlRedirector

  def initialize app
09.08.2011
Matthias Frick
Ruby on Rails
0 Kommentare
Weiterlesen