# Ruby on Rails for Tablet Computers (Android OS)

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131>\
**Category:** Rails\
**Created:** [March 30, 2011, 11:40am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131 "2011-03-30T11:40:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 30, 2011, 11:40am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/1 "2011-03-30T11:40:22Z")

</div>

Hey guys,

I am building an RoR web app that I would like to have fully contained  
in a tablet computer.

I would like to run the server on it, and also use it as the client.

Is this possible with any tablet computers out there at the moment?  
I really am aiming to get it working on the android tablet, but any  
tablet that allows you to install ruby and run a server would  
suffice.

any help appreciated!

Lee

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 30, 2011, 3:19pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/2 "2011-03-30T15:19:52Z")

</div>

I’m not aware of such a beast, but one thing to consider is memory and  
processing speed. We use Rails because it maximizes our (developer)  
productivity, and it does so at a cost of requiring a fairly studly  
server to run the back-end. I haven’t tried running RoR on anything  
less than a 1/2 GB VPS.

Now when I was just starting out in this tech wheeze, I had an off-  
cast SE/30 running some Mac Web server, and it was pretty darned quick  
on the local network. A pal of mine had installed Unix on his, and  
hooked it to a T1, and could saturate the T with upstream traffic from  
Apache. But that’s static service, nothing dynamic. That SE/30, with  
its 16MHz 68030 processor, 1 whole Megabyte of RAM, and creaky-slow  
SCSI 1 hard disk could be speedier than the network when the task was  
sized to it, but try to get it to also run a database server, an  
application server, etc. at the same time as all those Web requests,  
and you would have had a sad little putty-colored puddle.

Now you’re talking about running the server AND the browser in the  
same memory- and process-limited environment. I don’t think it’s  
realistic to expect this to work well or even at all. I use a beefy  
Mac laptop to do the same thing for development purposes, but that’s  
orders of magnitude more processing power, available RAM, and storage  
for data and swap. It’s just not even in the same universe. And even  
that beast can be quite noticeably slower than the same app running  
from SliceHost over my network connection.

Walter

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 31, 2011, 8:38am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/3 "2011-03-31T08:38:20Z")

</div>

thanks for your reply.

I think you are right in what you say. It would be too much of a  
memory hog to do such a thing.

I will have to have a dedicated server for the hosting of the RoR app.

I am building a point of sale system where the interface is html on a  
tablet pc, so I was digging into my options.

May be best to just access a small linux server over wifi.

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 31, 2011, 9:45am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/4 "2011-03-31T09:45:01Z")

</div>

yes, the full stack would be required.  
I am using rails3 btw.

regards,

Lee F.

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 31, 2011, 9:36am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/5 "2011-03-31T09:36:58Z")

</div>

are you looking for the full rails stack? Or would a ruby-based MVC  
stack  
work for you? Look at [http://rhomobile.com/](http://rhomobile.com/).  
I have used them in the past, and they do what you want, but its not a  
full  
rails stack, more like a ruby-mvc subset.

-igor

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 31, 2011, 10:22am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/6 "2011-03-31T10:22:41Z")

</div>

yes, the full stack would be required.  
I am using rails3 btw.

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 31, 2011, 3:20pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/7 "2011-03-31T15:20:24Z")

</div>

As opposed to running the server on the handheld, have you looked at  
writing an app using Mirah?  
It’s very, very ruby-like.

Mirah is a simpler Java, a Java that is fun to work with. Best of all,  
it is also already fully functional, and is just a simple gem install  
away:

– [Beyond Ruby: Mirah, Reia, Rite - igvita.com](http://www.igvita.com/2010/12/14/beyond-ruby-mirah-reia-rite/)

HTH,  
Dan

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [April 1, 2011, 7:05pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/8 "2011-04-01T19:05:19Z")

</div>

Again, if you like writing in Ruby vs Java, do a sample test app with  
Mirah.  
Let us all know how it goes.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [March 31, 2011, 10:41pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/9 "2011-03-31T22:41:49Z")

</div>

I’ve not heard of Mirah. Certainly like the idea though.

I have decided to drop the whole rails approach.

I had designed a rails app to act as a full point of sale  
application.  
It would be accessed over tablet pc browsers.

I have done some testing today accessing the web app via safari on the  
ipad and the latency was terrible.  
So much so, that it renders the product un-usable.

I am going to have to go full android I think.  
Maybe have some backend to dump the data using some rest API.

Any advice for taking such a route?

---

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [April 6, 2011, 3:57pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-tablet-computers-android-os/205131/10 "2011-04-06T15:57:33Z")

</div>

ok, thanks, I will post here shortly
