Hello, could someone help me with this three questions please?
I’m trying to create a simple blog, however there are three things that I can’t figure out
1.- Using the packages collection2 and autoform I can’t manage the form to display, I created the route, assigned the template, created the template but when I go to the route the form just doesn’t show up, I don’t know what might happen.
2.- How can I make that a post belong to an user?
3.- I’m planning to use alanning roles package to create a group of admins, if I only want the admins to be able to create posts is it only possible to handle it in the template? I am using Flow Router.
You can see the source code here https://github.com/Oxyrus/Meteor-Blog
Thank you so much for your time
EDIT
It seems like I can’t create a route which actually works now, my code
FlowRouter.route('/hey', {
action: function (params, queryParams) {
FlowLayout.render('layout', { top: 'navbar', main: 'hey' });
}
});
I created the template, but when I go to /hey nothing appears, only a white screen, is my code wrong or what could be the problem?
Thank you!