Set up a Rails app with Phonegap (iphone)

294 views
Skip to first unread message

Greg

unread,
Jun 1, 2010, 4:47:34 PM6/1/10
to phonegap
Hi,
I am new to Phonegap and I want to start a new rails project.
I moved my entire rails app into the www folder, but now when I try to
open my iphone application it crashs.
I guess it is because there is no index ifile nto www, because it is
now into www/public. Is there a way to specify this?


Other little issue, when I run my app on my laptop browser the this
css attribute 'media="only screen and (max-device-width: 480px)" ' all
my style is not working anymore. Why?

thanks
Greg

D. Rimron

unread,
Jun 1, 2010, 4:56:31 PM6/1/10
to Greg, phonegap
You can't run rails on an iPhone!

Sent from my iPhone

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Greg

unread,
Jun 1, 2010, 4:59:27 PM6/1/10
to phonegap
Isn't it the point of phonegap? Develop a webapp for mobile device?

On 1 juin, 22:56, "D. Rimron" <dar...@xalior.com> wrote:
> You can't run rails on an iPhone!
>
> Sent from my iPhone
>

mobweb

unread,
Jun 1, 2010, 5:10:23 PM6/1/10
to phonegap
PhoneGap only enables client-side programming, which is code that runs
in the web browser, rather than the web server, since the iPhone isn't
a server.

JavaScript is a of client side scripting language because the code is
sent to the browser, at which point it is executed.

PHP and Rails are server side scripting languages because the code is
executed on the server, and the resulting code is sent to the browser
and displayed.

mobweb

unread,
Jun 1, 2010, 5:11:51 PM6/1/10
to phonegap
However that doesn't mean that you can't connect to a server to fetch
information, because Ajax/JSONP etc. works just fine on most (?)
devices.

On 1 Jun., 22:59, Greg <g.marcilh...@gmail.com> wrote:

Greg

unread,
Jun 1, 2010, 5:14:52 PM6/1/10
to phonegap
Thanks for the clarification, I feel stupid. Yes obviously I can't run
Rails on an iphone. It's only html / javascript.
Thank you

jab...@gmail.com

unread,
Jun 1, 2010, 5:20:31 PM6/1/10
to Greg, phon...@googlegroups.com
Greg,

You may want to look at rhomobile. Similar to phoneGap but with a rails approach.

Good luck,


John
Sent via BlackBerry by AT&T

Greg

unread,
Jun 1, 2010, 5:37:22 PM6/1/10
to phonegap
What about using an iframe?
Greg
> For more options, visit this group athttp://groups.google.com/group/phonegap?hl=en?hl=en

Nunzio Fiore

unread,
Jun 1, 2010, 5:47:11 PM6/1/10
to Greg, phonegap
APPLE REFUSE YOU if you use this way of develop.

Try to think... 

I release a wonderful app with and ifram on www.youtube.com and after some times after they accpt me, i change my content in youporn.com... it's easy to understand that it isn't the right way...

good luck
nnz

jab...@gmail.com

unread,
Jun 1, 2010, 5:58:02 PM6/1/10
to Greg, phon...@googlegroups.com
Apple would never approve.
Reply all
Reply to author
Forward
0 new messages