Skip to content

Instantly share code, notes, and snippets.

array = [1, 2]
array.each_with_index do |item, index|
puts "LAST!" if item == array.last
end
class ArtistSearchController < ApplicationController
def search
@title = "Search"
end
def artist
@title = "Similar artists"
logger.debug "#{params[:artist].class}"
unless params.nil?
music_request = MusicRequest.new #snake_case, not camelCase