These are chat archives for iron-meteor/iron-router

8th
Jan 2016
janibekm
@janibekm
Jan 08 2016 06:19
helloo ? guys?
is there anybody else?
Chris Butler
@chrisbutler
Jan 08 2016 06:21
What's up?
janibekm
@janibekm
Jan 08 2016 06:21
hey whats up
thank you for replay me
i have got problem with iron router i cant understand how to solve problem
can ask question?
name: 'mashin',
template: 'mashin',
data: function(){
var currentMenu = this.param._id;
return Menu.findOne({_id: currentMenu});
  }
});
janibekm
@janibekm
Jan 08 2016 06:26
``` {{#each menu0}}
         <div class="col-md-2 col-xs-12 col-sm-6">
           <a href="{{pathFor route='mashin'}}" class = "get btn btn-success">{{name}}</a>
          </div>
        {{/each}}
```
blob
showing each menu0 find named 6 button
if click route to that named="mashin"
template
then
i clicked button
blob
then routed my page
janibekm
@janibekm
Jan 08 2016 06:31
Problem! if i reload my page nothing shown
why ? where am i messed?
trying to solve problem day before
what i have to do? i newly man using meteor
and sorry my english is not well :)
janibekm
@janibekm
Jan 08 2016 06:39
@chrisbutler any idea?
Chris Butler
@chrisbutler
Jan 08 2016 06:39
i’m not exactly sure what’s going on. i could probably help if i could see all of the code together
janibekm
@janibekm
Jan 08 2016 06:39
how can i share my code?
Chris Butler
@chrisbutler
Jan 08 2016 06:39
can you push the project to github?
janibekm
@janibekm
Jan 08 2016 06:41
yeah sure
reload nothing shown
blob
im pushing my code it will takes several minutes
Chris Butler
@chrisbutler
Jan 08 2016 06:50
are there any errors in the browser console on that page?
janibekm
@janibekm
Jan 08 2016 06:51
blob
firstly get that page it was working fine
if i ctrl+r
that page nothing shown ?/
Chris Butler
@chrisbutler
Jan 08 2016 06:52
oh i see it now
it should be this.params
you’re missing the s
janibekm
@janibekm
Jan 08 2016 06:54
but not routing
blob
only in home cant call css and others
janibekm
@janibekm
Jan 08 2016 07:01
thank you @chrisbutler this is routing
Chris Butler
@chrisbutler
Jan 08 2016 07:01
cool
:+1:
janibekm
@janibekm
Jan 08 2016 07:01
finding, but not calling css and any layout :)
ui is showing really bad
janibekm
@janibekm
Jan 08 2016 07:07
@chrisbutler i have one more question?
Chris Butler
@chrisbutler
Jan 08 2016 07:08
sure
janibekm
@janibekm
Jan 08 2016 07:10
https://files.gitter.im/iron-meteor/iron-router/sBH3/blob why cant calling css -s there nothing shown on console errors?
Chris Butler
@chrisbutler
Jan 08 2016 07:20
where is the css?
janibekm
@janibekm
Jan 08 2016 07:21
blob
structure
blob
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3000/mashin/css/bootstrap.min.css".
is that one error ?
Chris Butler
@chrisbutler
Jan 08 2016 07:24
are you trying to include bootstrap?
using the atmosphere package would be simpler
also, your path in that case should be absolute, i.e. /css/bootstrap.min.css
but the right way to do it is to place the css files inside your client folder, and meteor will automatically include them in the app
janibekm
@janibekm
Jan 08 2016 07:29
so i have to move css folder public to client ?
Chris Butler
@chrisbutler
Jan 08 2016 07:29
"All files loaded on the client are automatically concatenated and minified when in production mode. In development mode, JavaScript and CSS files are not minified, to make debugging easier. (CSS files are still combined into a single file for consistency between production and development, because changing the CSS file's URL affects how URLs in it are processed.)"
yes
janibekm
@janibekm
Jan 08 2016 07:30
i will try it now
thank you so much ! :)
you saved my time really
Chris Butler
@chrisbutler
Jan 08 2016 07:33
happy to help