Rails models
This commit is contained in:
parent
ca9ef65439
commit
1ba26ffd9c
@ -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
|
||||
|
6
rails/app/models/artist.rb
Normal file
6
rails/app/models/artist.rb
Normal file
@ -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
|
@ -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
|
0
rails/app/models/release.rb
Normal file
0
rails/app/models/release.rb
Normal file
6
rails/app/models/release_group.rb
Normal file
6
rails/app/models/release_group.rb
Normal file
@ -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
|
@ -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
|
@ -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
|
||||
[1m[36mSQL (3.1ms)[0m [1mSHOW client_min_messages[0m
|
||||
[1m[35mSQL (5.8ms)[0m SET client_min_messages TO 'panic'
|
||||
[1m[36mSQL (2.0ms)[0m [1mSET standard_conforming_strings = on[0m
|
||||
[1m[35mSQL (2.2ms)[0m SET client_min_messages TO 'notice'
|
||||
[1m[36mSQL (36.5ms)[0m [1mSET time zone 'UTC'[0m
|
||||
[1m[35mSQL (4.7ms)[0m 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"}
|
||||
[1m[36mArtists Load (55.1ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (15.5ms)[0m 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
|
||||
[1m[36mSQL (3.1ms)[0m [1mSHOW client_min_messages[0m
|
||||
[1m[35mSQL (1.5ms)[0m SET client_min_messages TO 'panic'
|
||||
[1m[36mSQL (5.3ms)[0m [1mSET standard_conforming_strings = on[0m
|
||||
[1m[35mSQL (4.7ms)[0m SET client_min_messages TO 'notice'
|
||||
[1m[36mSQL (3.6ms)[0m [1mSET time zone 'UTC'[0m
|
||||
[1m[35mSQL (2.7ms)[0m SHOW TIME ZONE
|
||||
Processing by ArtistController#view as HTML
|
||||
Parameters: {"name"=>"Jet"}
|
||||
[1m[36mArtists Load (47.3ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (14.6ms)[0m 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
|
||||
[1m[36mSQL (7.5ms)[0m [1mSHOW client_min_messages[0m
|
||||
[1m[35mSQL (10.8ms)[0m SET client_min_messages TO 'panic'
|
||||
[1m[36mSQL (21.1ms)[0m [1mSET standard_conforming_strings = on[0m
|
||||
[1m[35mSQL (7.2ms)[0m SET client_min_messages TO 'notice'
|
||||
[1m[36mSQL (11.2ms)[0m [1mSET time zone 'UTC'[0m
|
||||
[1m[35mSQL (3.1ms)[0m SHOW TIME ZONE
|
||||
Processing by ArtistController#view as HTML
|
||||
Parameters: {"name"=>"Jet"}
|
||||
[1m[36mArtists Load (52.3ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (28.7ms)[0m 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"}
|
||||
[1m[36mArtist Load (28.1ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (7.0ms)[0m 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
|
||||
[1m[36mSQL (4.5ms)[0m [1mSHOW client_min_messages[0m
|
||||
[1m[35mSQL (2.0ms)[0m SET client_min_messages TO 'panic'
|
||||
[1m[36mSQL (1.9ms)[0m [1mSET standard_conforming_strings = on[0m
|
||||
[1m[35mSQL (2.2ms)[0m SET client_min_messages TO 'notice'
|
||||
[1m[36mSQL (4.7ms)[0m [1mSET time zone 'UTC'[0m
|
||||
[1m[35mSQL (6.3ms)[0m SHOW TIME ZONE
|
||||
Processing by ArtistController#view as HTML
|
||||
Parameters: {"name"=>"Jet"}
|
||||
[1m[36mArtist Load (64.7ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (20.1ms)[0m 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
|
||||
[1m[36mSQL (5.8ms)[0m [1mSHOW client_min_messages[0m
|
||||
[1m[35mSQL (2.1ms)[0m SET client_min_messages TO 'panic'
|
||||
[1m[36mSQL (1.8ms)[0m [1mSET standard_conforming_strings = on[0m
|
||||
[1m[35mSQL (1.7ms)[0m SET client_min_messages TO 'notice'
|
||||
[1m[36mSQL (4.1ms)[0m [1mSET time zone 'UTC'[0m
|
||||
[1m[35mSQL (1.8ms)[0m SHOW TIME ZONE
|
||||
Processing by ArtistController#view as HTML
|
||||
Parameters: {"name"=>"Jet"}
|
||||
[1m[36mArtist Load (69.0ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (8.3ms)[0m 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"}
|
||||
[1m[36mArtist Load (12.6ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (14.2ms)[0m 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"}
|
||||
[1m[36mArtist Load (16.7ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (8.5ms)[0m 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"}
|
||||
[1m[36mArtist Load (15.2ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (5.3ms)[0m 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"}
|
||||
[1m[36mArtist Load (16.3ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (6.1ms)[0m 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 `<class:ArtistController>'
|
||||
app/controllers/artist_controller.rb:1:in `<top (required)>'
|
||||
|
||||
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 `<class:ArtistController>'
|
||||
app/controllers/artist_controller.rb:1:in `<top (required)>'
|
||||
|
||||
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"}
|
||||
[1m[36mArtist Load (11.2ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (3.8ms)[0m 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"}
|
||||
[1m[36mArtist Load (10.8ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
[1m[35mSQL (4.8ms)[0m 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"}
|
||||
[1m[36mArtist Load (12.1ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (5.1ms)[0m 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"}
|
||||
[1m[36mArtist Load (26.7ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (7.0ms)[0m 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"}
|
||||
[1m[36mArtist Load (35.3ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (7.8ms)[0m 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"}
|
||||
[1m[36mArtist Load (14.0ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (5.9ms)[0m 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"}
|
||||
[1m[36mArtist Load (17.0ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (5.4ms)[0m 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"}
|
||||
[1m[36mArtist Load (13.1ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
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)
|
||||
[1m[35mSQL (5.2ms)[0m 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"}
|
||||
[1m[36mArtist Load (12.7ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
[1m[35mReleasegroup Load (324.1ms)[0m SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" LIMIT 1
|
||||
[1m[36mSQL (15.7ms)[0m [1m 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
|
||||
[0m
|
||||
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)
|
||||
[1m[35mSQL (6.3ms)[0m 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"}
|
||||
[1m[36mArtist Load (18.1ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
[1m[35mReleaseGroup Load (9.0ms)[0m SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" LIMIT 1
|
||||
[1m[36mSQL (7.7ms)[0m [1m 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
|
||||
[0m
|
||||
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)
|
||||
[1m[35mSQL (5.4ms)[0m 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"}
|
||||
[1m[36mArtist Load (12.3ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
[1m[35mReleaseGroup Load (23.4ms)[0m SELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" LIMIT 1
|
||||
[1m[36mSQL (4.5ms)[0m [1m 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
|
||||
[0m
|
||||
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)
|
||||
[1m[35mSQL (11.8ms)[0m 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"}
|
||||
[1m[36mArtist Load (18.4ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
[1m[35mSQL (6.6ms)[0m 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
|
||||
[1m[36mReleaseGroup Load (652.3ms)[0m [1mSELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" WHERE (artist_id = 99187 AND type=1) ORDER BY year ASC, id ASC[0m
|
||||
[1m[35mSQL (7.7ms)[0m 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"}
|
||||
[1m[36mArtist Load (15.8ms)[0m [1mSELECT "musicbrainz"."bh_artist".* FROM "musicbrainz"."bh_artist" WHERE (name = 'Jet' AND id=credit_id) ORDER BY rating DESC LIMIT 1[0m
|
||||
[1m[35mSQL (8.1ms)[0m 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
|
||||
[1m[36mReleaseGroup Load (13.0ms)[0m [1mSELECT "musicbrainz"."bh_release_group".* FROM "musicbrainz"."bh_release_group" WHERE (artist_id = 99187 AND release_type=1) ORDER BY year ASC, id ASC[0m
|
||||
[1m[35mSQL (4.6ms)[0m 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)
|
||||
|
@ -1 +1 @@
|
||||
28158
|
||||
28729
|
Loading…
x
Reference in New Issue
Block a user