oldhaven/app/controllers/artist_controller.rb

15 lines
272 B
Ruby
Raw Normal View History

2011-04-06 02:58:11 +04:00
# encoding: utf-8
2011-04-03 20:21:05 +04:00
class ArtistController < ApplicationController
2011-04-06 02:58:11 +04:00
require 'open-uri'
2011-04-03 20:21:05 +04:00
def view
if params[:name].nil?
name = ''
else
name = params[:name].gsub('+', ' ').gsub('%20', ' ')
end
@artist = Artist.getByName(name)
2011-04-10 04:15:29 +04:00
pp @artist
2011-04-03 20:21:05 +04:00
end
end