All posts in 'Rails'

Disable Ruby On Rails Sessions

20-Nov-07

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 […]

Read the complete article »

Rails’ respond_to method

06-Aug-07

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 […]

Read the complete article »

RMagick vs. the Rest of the World

24-Jul-07

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 […]

Read the complete article »

Rails and Grails revisited

25-Jun-07

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 […]

Read the complete article »