Nifty RubyOnRails Layout Method

Posted by kris on August 01, 2008

So I find myself in many situations where different actions need different layouts, which is common in large multiuser systems. For example, in my system, when you are viewing a user index, it loads the layout ‘application’. When you’re viewing the edit action, it loads the layout ‘profile’, otherwise it loads the layout ‘user’. I hacked up a tiny method to toss in the application controller: Continue reading…

Complications installing RubyOnRails 2.0.2

Posted by kris on December 18, 2007

While sitting in my living room watching a movie and working on my laptop, I realized I had forgotten to update my rails install to the latest 2.0.2. I did a `gem install rails` but it kept dieing with the wonderful OpenURI::HTTPError, regardless if I used the correct –source flag. Turns out if you do `gem update –system` first, then a `gem install rails` it will go smoothly.


sid-1
IMG_2283
IMG_2280
IMG_2271
IMG_2247
IMG_2234
IMG_2140
IMG_1515
Close
E-mail It