swapnilchincholkar/senchamvc
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This repository is example application to demonstrate how to intgrate Sencha touch application with ruby on rails application. After cloning repository run rake db:create rake db:migrate rake db:seed Then update url in public/javascripts/app/models/Businesss.js and in public/javascripts/app/models/Organization.js from url: 'http://192.168.1.159:3000/businesses.json', to url: 'http://<your IP address>:3000/businesses.json' Then after executing rails s Open the url as http://<your IP address>:3000/ in browser of mobile phone or Safari browser. If you are using Safari the set the user agent to iphone, To change the User agent in Safari, you can go to Menu -> Develop -> User Agent and set the one you need. And in chrome, please refer to http://www.mobitechie.com/browser/how-to-change-useragent-string-on-chrome-to-simulate-iphone-browser/