Skip to content

Instantly share code, notes, and snippets.

@vladan-zoricic
vladan-zoricic / devv_controller.rb
Created December 14, 2015 11:46
Ruby challenge
class DevvController < ApplicationController
def options
options = {}
available_option_keys = [:awesome, :ruby, :developer]
all_keys = params.keys.map(&:to_sym)
#this is wrong, we can not concatenate arrays with '&' operator, we should use '&&' or '+' operator