Just a reminder to myself, but maybe it’s usefull for others as well. Some days ago i stumpled upon the fact, that one can turn off session support in controllers in rails: HowtoChangeSessionOptions (see Disabling Sessions) or HowtoPerActionSessionOptions. I found it particularly useful and convenient for my Feed controller, which is dedicated entirely to feed […]
Ruby On Rails has a neat little feature called “respond_to”: class WeblogController < ActionController::Base def index @posts = Post.find :all respond_to do |format| format.html format.xml { render :xml => @posts.to_xml } format.rss { render :action => "feed.rxml" } end end endclass WeblogController < ActionController::Base def index @posts = Post.find :all respond_to do |format| format.html format.xml […]
Installing RMagick seems to be a major pain in the ass… On all systems i got my hands on. On a fresh Ubuntu Feisty Fawn gems presented me this: configure: error: C compiler cannot create executables Hrmpf, ImageMagick was installed, gcc for sure… What did i miss? 1. sudo apt-get install imagemagick 2. sudo apt-get […]
I’ve never thought that my little little post would made such an impact. While writing that post i was frustrated explaining the Spring configuration to my colleaques again, i was frustrated over the url mappings and so the post was a little harsh. I don’t think that Hibernate is inferior to Active Record, regarding Spring […]