# encoding: utf-8 class ArtistController < ApplicationController require 'open-uri' def view if params[:name].nil? name = '' else name = params[:name].gsub('+', ' ').gsub('%20', ' ') end @artist = Artist.getByName(name) end end