Coder Social home page Coder Social logo

phonegap-rails's People

Contributors

joscas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phonegap-rails's Issues

Some questions about phonegap and rails

Hi Josep,

I've been trying to get my single page rails app working on phonegap and having trouble :( Any chance I could get your email to ask some questions as I see that you haven't updated this gem to rails 4 and the newer folder structure of phonegap.

I would just like to understand the general steps of what's necessary to do, and I can try implementing it myself. Here is what I've tried:

  1. I use rake assets:precompile to get the assets in the public/assets directory
  2. I create an index.html file manually which sources those assets (haven't figured out how to automatically generate the file)
  3. I copy the files over the phone gap www folder.

Unfortunately, the above doesn't work :( Even before step 3, if I simply open the index.html file, it doesn't work. However, if I go to localhost:3000, and let rails serve the same index.html file from the public directory, it does work (seems to me that angular doesn't like serving directly from a file, which also worries me since it feels like phonegap will do that too).

Rails 4.0.2 Rake Issues

I have a simple rails-ember application (https://github.com/bahhudson/rails-ember-simple-posts) and I have added and initialized the rails-phonegap gem.

When I run any rake commands, they are always aborted. When running:
rake phonegap:rails:android:initall

I receive the following output:

Creating android project
creating project: ~/Workspace/phonegap-2.9.1/lib/android/bin/create phonegap/android/Myblog com.merxcore.rails-ember-simple-posts Myblog
An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1
Deleting project...
Exporting android project
* javascript assets
rake aborted!
No such file or directory @ rb_sysopen - phonegap/android/Myblog/assets/www/js/application.js
/Users/bahudso/.rvm/gems/ruby-2.1.1/gems/phonegap-rails-0.0.12/lib/phonegap/rails/tasks/rails.rake:48:in `initialize'
/Users/bahudso/.rvm/gems/ruby-2.1.1/gems/phonegap-rails-0.0.12/lib/phonegap/rails/tasks/rails.rake:48:in `open'
/Users/bahudso/.rvm/gems/ruby-2.1.1/gems/phonegap-rails-0.0.12/lib/phonegap/rails/tasks/rails.rake:48:in `block (4 levels) in <top (required)>'
/Users/bahudso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/bahudso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => phonegap:rails:android:initall => phonegap:rails:android:export

I take it something may be wrong with my phonegap_rails.yml config or my environment but I am not sure. I currently have the ADT folder at ~/Workspace/adt and the phonegap folder at ~/Workspace/phonegap-2.9.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.