Nifty RubyOnRails Layout Method
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
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.







