Iphone on rails

8 views
Skip to first unread message

doxsi

unread,
Feb 21, 2011, 11:01:05 AM2/21/11
to ObjectiveResource
Hi,
I wanto to try the Iphone on rail salmple app.

I downloaded the the "1.01 Full XCode Project" and follow the getting
Started instrauctions.
I have to download en istall some additional stuff(rails, ruby ...)?

because, when I run the ./server in the script folder , terminal give
me this message:

mongrel:: start reportes an error. Use mongrel_rails...
exiting


any help , please?

Wes Duff

unread,
Feb 21, 2011, 11:54:05 AM2/21/11
to objectiv...@googlegroups.com
You have to install ruby on rails on your local machine. Then you have to build your service you want to use on your iPhone app in rails. Once you have built your service and have tested it using "script/console" then you are ready to use Objective Resource.

NOTE: I use the scaffold script to build my service then I go in and tweak the compiled scripts.


--
You received this message because you are subscribed to the Google Groups "ObjectiveResource" group.
To post to this group, send email to objectiv...@googlegroups.com.
To unsubscribe from this group, send email to objectiveresou...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objectiveresource?hl=en.


Fredrik Jansson

unread,
Feb 21, 2011, 12:02:43 PM2/21/11
to objectiv...@googlegroups.com
Yes you have to set up a ruby and rails installation in addition you need to install the mongrel gem since that is the webserver used by the example.
You could also try using webbrick instead of mongrel since it runs of the box without additional gem installations.



domenico sicignano

unread,
Feb 21, 2011, 2:56:11 PM2/21/11
to objectiv...@googlegroups.com, Fredrik Jansson
Thank you guys,
my problem was that the sample_rail_app server didn'work simplle run as ./server. Now I run it as ./server webrick and it' work!

NOw I have to understand why the iphone side doesn't allow me to add people in the example (the app crash)

Thank you so much!

2011/2/21 Fredrik Jansson <fredrikja...@gmail.com>

Wes Duff

unread,
Feb 21, 2011, 3:26:01 PM2/21/11
to objectiv...@googlegroups.com
Just a note a few files have to be updated.
You can get the stuff you need off of git hub.
I went in and manually changed the files.
There is some step by step instructions. Just do a search in the mail group for updating files in objective resource and you should find them, or you can search for other posts from me and one of them was about making the updates to the files from git hub.

Best of luck
Reply all
Reply to author
Forward
0 new messages