2011-04-05 22:58:11 +00:00
|
|
|
# encoding: utf-8
|
2011-04-03 16:21:05 +00:00
|
|
|
class ArtistController < ApplicationController
|
2011-04-05 22:58:11 +00:00
|
|
|
require 'open-uri'
|
2011-04-03 16:21:05 +00:00
|
|
|
def view
|
2011-04-09 13:31:13 +00:00
|
|
|
if params[:name].nil?
|
|
|
|
name = ''
|
|
|
|
else
|
|
|
|
name = params[:name].gsub('+', ' ').gsub('%20', ' ')
|
|
|
|
end
|
|
|
|
@artist = Artist.getByName(name)
|
2011-04-03 16:21:05 +00:00
|
|
|
end
|
|
|
|
end
|
2011-04-09 13:02:28 +00:00
|
|
|
|