Can I get an example for using updateRemote?

3 views
Skip to first unread message

techwraith

unread,
Sep 4, 2009, 11:46:27 PM9/4/09
to ObjectiveResource
I can't seem to figure out how to do this correctly -

What I want to do is really simple, edit a record in my rails database
from my iphone app. I'm really new to objective-c (this is my first
real project) so I'm not quite sure where everything goes, and what I
need and don't need.

So here are my questions:

1. Where do I define my model? (Users in my case)

2. How do I define my connection?

3. Once I'm there, how do I actually send my data to my server?

Thanks,
Techwraith

Adam Alexander

unread,
Sep 5, 2009, 8:50:59 AM9/5/09
to objectiv...@googlegroups.com
Hi, in the objective_resource project take a look in the project group called 'Example' and you will find the models (Person and Dog), configuration (located in objective_resourceAppDelegate) and an example update in EditDogViewController.  I hope this is helpful but if you find yourself with any other questions feel free to ask.  Have fun!

Adam

techwraith

unread,
Sep 7, 2009, 6:20:26 PM9/7/09
to ObjectiveResource
Thanks for getting back to me. For some reason its still not updating
the record that I'm trying to update.

I might try to start from scratch again and see if I can get it to
work this time. I'll see if I can get you guys some of my code to look
at, so you can see if I'm doing anything wrong.

Techwraith

Adam Alexander

unread,
Sep 7, 2009, 7:19:56 PM9/7/09
to objectiv...@googlegroups.com
You're welcome, also you may find it helpful to enable debug logging in ObjectiveResource, see the Debug Logging section at:

http://iphoneonrails.com/getting-started#debug-logging

Also, be sure to watch your rails app's log entries during your debug session to check for any clues there.

Adam
Reply all
Reply to author
Forward
0 new messages