This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array = [1, 2] | |
array.each_with_index do |item, index| | |
puts "LAST!" if item == array.last | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |