Models refactoring, artist page draft

This commit is contained in:
magnolia-fan
2011-04-06 02:58:11 +04:00
parent d3d0f993c5
commit e14303c044
14 changed files with 18065 additions and 329 deletions
@@ -1,3 +1,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery
require 'pp'
#require 'cobravsmongoose'
end
+3 -7
View File
@@ -1,11 +1,7 @@
# encoding: utf-8
class ArtistController < ApplicationController
require 'open-uri'
def view
@artist = Artist.getByName(params[:name])
@albums = ReleaseGroup.getArtistAlbums(@artist.id)
rg_ids = []
@albums.each do |a|
rg_ids << a.id
end
@releases = Release.getReleases(rg_ids, true, true);
@artist = Artist.getByName(params[:name].gsub('+', ' ').gsub('%20', ' '))
end
end