Hi Dylan,
I have to do a workaround on how to make it work with the things which you have mentioned for the doubts i have and i would like to give some of the other errors i'm facing
1)in models i have created a table structure where for a particular column the value should be unique so i have created a column like this
email: {
type : 'String',
required: true,
unique: true
}
when i lift the server and if i try giving two identical values to insert its inserting them wid no error :(
2)as per the Waterline schema there are many validations and queries where you can do findOne but when i try to use findOne it throws me an error that method is not available :(
3)i'm trying to upload some of the files into the public directory and i'm using a upload form in the views and i have made available with this parameter in the view form " enctype="multipart/form-data" and when i upload the file i get the output in the command line as a array but when i want the path lets say
req.files.path or req.files.{name}.path
i get errors saying that the name is not a method or the path is not a method
4)i have tried converting the req.files into a json format where i get an tuple but when i try to access the value of path like this
der[path] where der is "var der = JSON.strigify(req.files)" i'm not getting the value and even i tried to get the values keeping them in a loop but no luck.
5)what does app.js do?if my understanding is rte then is this syntax correct
require('sails').lift(require('optimist').argv);(this is der by default)
require('sails').lift(require('express').argv);( i would like to make sure that the express module will be up when the sails is lifting up the server.
Thanks,
Vamsi Kgr