2011-11-28 7 views
0

私は管理者による新たな分類ツリーを作成し、私は、製品に分類群を追加します。 新しいタクソンは実際にはサイドバーに表示されますが、アクセスしようとすると404はありません。まくる0.70.3レール3.1.3問題

Started GET "/t/organa-metrisis/mikrometra" for 127.0.0.1 at 2011-11-28 22:44:33 +0200 
    Property Load (0.2ms) SELECT "properties".* FROM "properties" WHERE "properties"."name" = 'brand' LIMIT 1 
    Processing by TaxonsController#show as HTML 
    Parameters: {"id"=>"organa-metrisis/mikrometra"} 
    AppConfiguration Load (0.3ms) SELECT "configurations".* FROM "configurations" WHERE "configurations"."type" IN ('AppConfiguration') AND "configurations"."name" = 'Default configuration' LIMIT 1 
    User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 
    Taxon Load (0.3ms) SELECT "taxons".* FROM "taxons" WHERE "taxons"."permalink" = 'organa-metrisis/mikrometra' LIMIT 1 
Rendered public/404.html (116.9ms) 
Completed 404 Not Found in 364ms (Views: 217.9ms | ActiveRecord: 2.3ms) 
+0

は、あなたはまだですこの問題がありますか? –

答えて

0

私は現在、同じ環境とレールを実行していますが、出力が異なり、問題なく動作します。タクソノミーを再作成してからタクソンを製品に再割り当てすることをお勧めします。 _taxonomies.html.erbのビューが「views/shared」に表示されていない可能性があります。

ここで(トップレベルの4つの分類群、および1分類群の第二レベルでの8つの分類群との)私のサンプル出力です:

Started GET "/t/cards/congratulations" for 127.0.0.1 at 2011-12-18 22:11:26 -0500 
    Property Load (0.1ms) SELECT "properties".* FROM "properties" WHERE "properties"."name" = 'brand' LIMIT 1 
    Processing by TaxonsController#show as HTML 
    Parameters: {"id"=>"cards/congratulations"} 
    User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 
    Taxon Load (0.4ms) SELECT "taxons".* FROM "taxons" WHERE "taxons"."permalink" = 'cards/congratulations' LIMIT 1 
    Taxon Load (0.3ms) SELECT "taxons".* FROM "taxons" WHERE "taxons"."id" = ? LIMIT 1 [["id", 8]] 
    Taxon Load (0.3ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" >= 8 AND "taxons"."rgt" <= 9) ORDER BY "taxons"."lft" 
    Taxonomy Load (0.2ms) SELECT "taxonomies".* FROM "taxonomies" INNER JOIN "taxons" ON "taxons"."taxonomy_id" = "taxonomies"."id" AND "taxons"."parent_id" IS NULL 
Taxon Load (0.3ms) SELECT "taxons".* FROM "taxons" WHERE "taxons"."taxonomy_id" IN (1, 2, 3, 4) AND ("taxons"."parent_id" IS NULL) 
    Taxon Load (0.4ms) SELECT "taxons".* FROM "taxons" WHERE "taxons"."parent_id" IN (1, 2, 3, 4) ORDER BY "lft" 
    Taxon Load (0.4ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
    CACHE (0.0ms) SELECT "taxons".* FROM "taxons" WHERE ("taxons"."lft" <= 8 AND "taxons"."rgt" >= 9) ORDER BY "taxons"."lft" 
Rendered spree_dodatest_theme/app/views/shared/_taxonomies.html.erb (140.1ms) 

...(それが上になる)

関連する問題