def determine_layout
    action = params[:action]
    %w(index show edit update).include?(action) ? "application" : "sessions"  
...

Ruby On Determine layout

by Kryckan, September 11, 2009 23:05

Never mind, found a nice so...

C8c549e9bb39135192db53d238e19f3e Talk
def determine_layout
    action = params[:action]
    if action == "index" || action == "show" || action == "edit" || action == "update"
...

Ruby Determine layout

by Kryckan, September 11, 2009 23:00, 4 refactorings

The code looks ugly and I t...

C8c549e9bb39135192db53d238e19f3e Talk

Ruby On Dashboard

by Kryckan, July 22, 2008 18:38

Thanks! Will try it out now!

C8c549e9bb39135192db53d238e19f3e Talk
module DashboardHelper
  def activity_message_for(object)
    case object.class.name
...

Ruby Dashboard

by Kryckan, July 21, 2008 21:01, 6 refactorings, tagged with rails, helper

This works but it's kind of...

C8c549e9bb39135192db53d238e19f3e Talk