Here’s the question: Hi I want to ask, if you could tell me where to put my helper functions, that I want to use in different Controllers. Should I create a custom config file for this purpose?
Here’s the Answer:
Here’s the question: Hi I want to ask, if you could tell me where to put my helper functions, that I want to use in different Controllers. Should I create a custom config file for this purpose?
Here’s the Answer:
You can find the original question in googlegroups here: https://groups.google.com/forum/#!topic/sailsjs/GTGoOGHAEvE
The Question: I have a few models, where two of them will have the same fields as the first. So i want to set their prototype to the first model. Is there any special way you guys are doing this?
Here’s the Answer:
In episode 20 you’ll use an app to explore and understand how socket.io works within sails using a client side app that renders the majority of its views via ajax. With four lines of code, the app monitors the user model and alerts any subscribing sockets with changes to the model.
Special thanks to Srinivas Tamada and his on adding sound via jquery and can found at (“http://www.9lessons.info/2013/04/play-notification-sound-using-jquery.html”).
The repo for this episode can be found at: (“https://github.com/irlnathan/uglyGuineaPig”)
In episode 19 you’ll create the necessary ui and mechanics for sign-in and sign-out in preparation for using web sockets.
In episode 18 we’re taking a relatively deep dive into web sockets and how socket.io fits into the mix. You’ll build a simple chat app that incorporates the concept of rooms.