Closed JackyXiong closed 8 years ago
@JackyXiong do you have a collection called Post
or Posts
?
@snamoah yes, I had Post colletion. And I can open the admin/Post
page, but in this page, when Iron-router parse route , it's failed.
@JackyXiong this page is supposed to be a views page and if the error is coming from the newPath
helper then it means that Session.get("admin_collection_name")
is not being set and hence resulting in a route name adminDashboardNew
instead of adminDashboardPostNew
as to why... I'd need more info now how you're creating the posts in the adminConfig file
@snamoah I found my problem. My meteor-admin version is 1.2.0. This version has a bug, the newPath
is not provided but used in template AdminDashboardView
.So this happened.
Thank you very much.
@JackyXiong great! thanks for sharing your solution
I run meteor-starter, in
admin/Post
page ,I got a warning message,It cause
add one
button is not work. And I check themeteor admin
source code.In
/lib/client/js/templates.coffee
, code is this:But i find the JavaScript file in
.meteor/local/build/programs/web.browser/packages/yogiben_admin.js
, there is no newPath function in inAdminDashboardView.helpers
.Why this happened?