level 1
阔口阔落℉
楼主
没有报错,数据库也查出东西了。
def show
@imprint = Imprint.find(params[:id])
end
Started GET "/imprints/23" for 127.0.0.1 at 2016-01-27 10:17:21 +0800
Processing by ImprintsController#show as */*
Parameters: {"id"=>"23"}
Imprint Load (0.7ms) SELECT `imprints`.* FROM `imprints` WHERE `imprints`.`id` = 23 LIMIT 1
Rendered imprints/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 0.7ms)
2016年01月27日 02点01分
1
def show
@imprint = Imprint.find(params[:id])
end
Started GET "/imprints/23" for 127.0.0.1 at 2016-01-27 10:17:21 +0800
Processing by ImprintsController#show as */*
Parameters: {"id"=>"23"}
Imprint Load (0.7ms) SELECT `imprints`.* FROM `imprints` WHERE `imprints`.`id` = 23 LIMIT 1
Rendered imprints/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 0.7ms)