I want to save four fields(name,latitude,longitude,location) coming from
my android phone to mysql table through ruby. I did the follwing code in
my update file.
I want to save four fields(name,latitude,longitude,location) coming from
my android phone to mysql table through ruby. I did the follwing code in
my update file.
def update
@trackdata_items=Trackdata.new(params[:trackdata_items])
if @trackdata_items.save
This looks more like a create action than an update action.
But my sql database is updating each time with NULL values. what to do ?
First look in development.log to see what parameters are being posted
and which action is called.
Hi, actually I am beginner. So can you please tell where is
development.log ?
Most of the time unless you are some weird ass developer it will be
right there in the terminal by way of STDERR because you will
preferably start a non-daemonized testing server, otherwise it will be
in log/development.log relative to the root of your base Rails app.
Hi, actually I am beginner. So can you please tell where is
development.log ?
In that case start by working right through a good tutorial such as railstutorial.org (which is free to use online). That will show you
the basics of Rails. Do that before starting your own project, it
will save you a lot of time in the long run.
The log in in log/development.log though if you just want to see where
you are going wrong. But then do the tutorial.