diff --git a/rails/app/controllers/artist_controller.rb b/rails/app/controllers/artist_controller.rb index 6c43010..353b17b 100644 --- a/rails/app/controllers/artist_controller.rb +++ b/rails/app/controllers/artist_controller.rb @@ -1,5 +1,10 @@ class ArtistController < ApplicationController def view - @artist = Artists.getByName(params[:name]) + @artist = Artist.getByName(params[:name]) + @albums = ReleaseGroup.getArtistAlbums(@artist.id) + ids = [] + @albums.each do |a| + ids << a.id + end end end diff --git a/rails/app/models/artist.rb b/rails/app/models/artist.rb new file mode 100644 index 0000000..7ef9616 --- /dev/null +++ b/rails/app/models/artist.rb @@ -0,0 +1,6 @@ +class Artist < ActiveRecord::Base + set_table_name 'musicbrainz.bh_artist' + def self.getByName(name) + Artist.first(:conditions => ['name = ? AND id=credit_id', name], :order => 'rating DESC') + end +end diff --git a/rails/app/models/artists.rb b/rails/app/models/artists.rb deleted file mode 100644 index 93571f5..0000000 --- a/rails/app/models/artists.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Artists < ActiveRecord::Base - set_table_name 'musicbrainz.bh_artist' - def self.getByName(name) - Artists.first(:conditions => ['name = ? AND id=credit_id', name], :order => 'rating DESC') - end -end diff --git a/rails/app/models/release.rb b/rails/app/models/release.rb new file mode 100644 index 0000000..e69de29 diff --git a/rails/app/models/release_group.rb b/rails/app/models/release_group.rb new file mode 100644 index 0000000..824cb3d --- /dev/null +++ b/rails/app/models/release_group.rb @@ -0,0 +1,6 @@ +class ReleaseGroup < ActiveRecord::Base + set_table_name 'musicbrainz.bh_release_group' + def self.getArtistAlbums(artist_id) + ReleaseGroup.all(:conditions => ['artist_id = ? AND release_type=1', artist_id], :order => 'year ASC, id ASC') + end +end diff --git a/rails/app/models/releasegroups.rb b/rails/app/models/releasegroups.rb deleted file mode 100644 index 4826ad8..0000000 --- a/rails/app/models/releasegroups.rb +++ /dev/null @@ -1,6 +0,0 @@ -class ReleaseGroups < ActiveRecord::Base - set_table_name 'musicbrainz.bh_release_group' - def self.getArtistAlbums(artist_id) - ReleaseGroups.all(:conditions => ['artist_id = ? AND type=1', artist_id], :order => 'year ASC, id ASC') - end -end diff --git a/rails/log/development.log b/rails/log/development.log index 567385a..bf6e01b 100644 --- a/rails/log/development.log +++ b/rails/log/development.log @@ -381,3 +381,555 @@ ActionController::RoutingError (No route matches "/artists/1"): Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:34:33 +0400 + SQL (3.1ms) SHOW client_min_messages + SQL (5.8ms) SET client_min_messages TO 'panic' + SQL (2.0ms) SET standard_conforming_strings = on + SQL (2.2ms) SET client_min_messages TO 'notice' + SQL (36.5ms) SET time zone 'UTC' + SQL (4.7ms) SHOW TIME ZONE + +SyntaxError (/Users/chez/Sites/bh-git/rails/app/controllers/artist_controller.rb:6: syntax error, unexpected keyword_do_block +/Users/chez/Sites/bh-git/rails/app/controllers/artist_controller.rb:10: syntax error, unexpected keyword_end, expecting $end): + + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (12.2ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.9ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:35:34 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artists Load (55.1ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 183ms + +NameError (uninitialized constant ArtistController::ReleaseGroups): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (15.5ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (23.6ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (28.7ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:36:08 +0400 + SQL (3.1ms) SHOW client_min_messages + SQL (1.5ms) SET client_min_messages TO 'panic' + SQL (5.3ms) SET standard_conforming_strings = on + SQL (4.7ms) SET client_min_messages TO 'notice' + SQL (3.6ms) SET time zone 'UTC' + SQL (2.7ms) SHOW TIME ZONE + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artists Load (47.3ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 144ms + +NameError (uninitialized constant ArtistController::ReleaseGroups): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (14.6ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (22.7ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (28.4ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:44:33 +0400 + SQL (7.5ms) SHOW client_min_messages + SQL (10.8ms) SET client_min_messages TO 'panic' + SQL (21.1ms) SET standard_conforming_strings = on + SQL (7.2ms) SET client_min_messages TO 'notice' + SQL (11.2ms) SET time zone 'UTC' + SQL (3.1ms) SHOW TIME ZONE + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artists Load (52.3ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 64ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) + SQL (28.7ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (62.1ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (67.8ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:46:09 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (28.1ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 39ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (7.0ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (13.7ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.7ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:46:29 +0400 + SQL (4.5ms) SHOW client_min_messages + SQL (2.0ms) SET client_min_messages TO 'panic' + SQL (1.9ms) SET standard_conforming_strings = on + SQL (2.2ms) SET client_min_messages TO 'notice' + SQL (4.7ms) SET time zone 'UTC' + SQL (6.3ms) SHOW TIME ZONE + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (64.7ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 141ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (20.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (28.0ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (33.5ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:47:05 +0400 + SQL (5.8ms) SHOW client_min_messages + SQL (2.1ms) SET client_min_messages TO 'panic' + SQL (1.8ms) SET standard_conforming_strings = on + SQL (1.7ms) SET client_min_messages TO 'notice' + SQL (4.1ms) SET time zone 'UTC' + SQL (1.8ms) SHOW TIME ZONE + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (69.0ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 81ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (8.3ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (42.5ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (47.6ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:47:06 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (12.6ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 24ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) + SQL (14.2ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (21.0ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (26.1ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:48:25 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (16.7ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 28ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (8.5ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (16.3ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (21.3ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:52:09 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (15.2ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 27ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (5.3ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (12.2ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.3ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:52:09 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (16.3ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 27ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (6.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (13.4ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.3ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:53:54 +0400 + +TypeError (wrong argument type Class (expected Module)): + app/controllers/artist_controller.rb:2:in `include' + app/controllers/artist_controller.rb:2:in `' + app/controllers/artist_controller.rb:1:in `' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.4ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:53:54 +0400 + +TypeError (wrong argument type Class (expected Module)): + app/controllers/artist_controller.rb:2:in `include' + app/controllers/artist_controller.rb:2:in `' + app/controllers/artist_controller.rb:1:in `' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.3ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:54:07 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (11.2ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 25ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) + SQL (3.8ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (11.6ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.1ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:54:15 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (10.8ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 + SQL (4.8ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered artist/view.rhtml within layouts/application (44.3ms) +Completed 200 OK in 67ms (Views: 44.3ms | ActiveRecord: 30.5ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:54:20 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (12.1ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 23ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (5.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (11.9ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.7ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:54:31 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (26.7ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 38ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (7.0ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (13.9ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.8ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:54:52 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (35.3ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 75ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) + SQL (7.8ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (14.9ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.6ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:54:53 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (14.0ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 25ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (5.9ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (13.9ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.7ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:55:46 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (17.0ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 28ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (5.4ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (44.7ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (50.1ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:55:47 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (13.1ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 +Completed in 24ms + +NameError (uninitialized constant ArtistController::ReleaseGroup): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms) + SQL (5.2ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (12.3ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.7ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:56:07 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (12.7ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 + Releasegroup Load (324.1ms) SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" LIMIT 1 + SQL (15.7ms)  SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_release_group"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum + +Completed in 403ms + +ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: '4'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Releasegroup.inheritance_column to use another column for that information.): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) + SQL (6.3ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (13.1ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.1ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:57:49 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (18.1ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 + ReleaseGroup Load (9.0ms) SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" LIMIT 1 + SQL (7.7ms)  SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_release_group"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum + +Completed in 56ms + +ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: '4'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite ReleaseGroup.inheritance_column to use another column for that information.): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (5.4ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (39.0ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (44.0ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 20:57:51 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (12.3ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 + ReleaseGroup Load (23.4ms) SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" LIMIT 1 + SQL (4.5ms)  SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_release_group"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum + +Completed in 61ms + +ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: '4'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite ReleaseGroup.inheritance_column to use another column for that information.): + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms) + SQL (11.8ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (18.7ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (23.6ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 21:08:23 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (18.4ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 + SQL (6.6ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum + ReleaseGroup Load (652.3ms) SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" WHERE (artist_id = 99187 AND type=1) ORDER BY year ASC, id ASC + SQL (7.7ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_release_group"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Completed in 798ms + +ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: '1'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite ReleaseGroup.inheritance_column to use another column for that information.): + app/models/release_group.rb:4:in `getArtistAlbums' + app/controllers/artist_controller.rb:4:in `view' + +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.8ms) +Rendered /Users/chez/.rvm/gems/ruby-1.9.2-p180@beathaven/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.8ms) + + +Started GET "/artist/Jet/" for 127.0.0.1 at 2011-04-03 21:09:52 +0400 + Processing by ArtistController#view as HTML + Parameters: {"name"=>"Jet"} + Artist Load (15.8ms) SELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1 + SQL (8.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_artist"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum + ReleaseGroup Load (13.0ms) SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" WHERE (artist_id = 99187 AND release_type=1) ORDER BY year ASC, id ASC + SQL (4.6ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull + FROM pg_attribute a LEFT JOIN pg_attrdef d + ON a.attrelid = d.adrelid AND a.attnum = d.adnum + WHERE a.attrelid = '"musicbrainz"."bh_release_group"'::regclass + AND a.attnum > 0 AND NOT a.attisdropped + ORDER BY a.attnum +Rendered artist/view.rhtml within layouts/application (2.2ms) +Completed 200 OK in 144ms (Views: 45.6ms | ActiveRecord: 41.5ms) diff --git a/rails/tmp/pids/server.pid b/rails/tmp/pids/server.pid index aef9847..b2b1123 100644 --- a/rails/tmp/pids/server.pid +++ b/rails/tmp/pids/server.pid @@ -1 +1 @@ -28158 \ No newline at end of file +28729 \ No newline at end of file