4

I searched arround for solutions and didn't find anything of really pertinent on the subject.

This is why, I ask you guys your help :-)

Assuming I have an application running with Rails 3 using Devise to authenticate the users.

I need to create mobile applications for Iphone/Android and WP7.

The mobiles applications should communicate/login/create/list, do whatever the website can do.

The mobile Applications could commuicate by parsing the XML .... but maybe there are already lib/frameworks or something more sexy ?

What would be the best way to communicate between my mobile applications and my Rails website ?

Arkan
  • 6,196
  • 3
  • 38
  • 54

2 Answers2

1

I'd use the xml or json output to share data back and forth; For authentication you can set (in initializers/devise.rb)

config.http_authenticatable = true

That enables you to send basic HTTP Auth headers with every request which devise will handle for you.

--

For creating a webapplication that is also possible to view in a mobile version for the website i'd recommend to check out this railscast: http://railscasts.com/episodes/199-mobile-devices

ferdyh
  • 1,355
  • 2
  • 11
  • 29
0

It sounds like, if the mobile app is just an interface to the web app, that you would likely be best served by creating a mobile HTML5 "style" within your web app, that gets served automatically when a mobile phone accesses your website. All of your code can be in Rails, which it sounds like you're already familiar with, and you've also got the advantage of keeping your codebase all together in one place - if you want to add functionality later, you just update your web app, and don't worry about updating 2 different mobile phone apps as well.

drosboro
  • 398
  • 1
  • 9