Community Questions & Answers
Why sending nested JSON to a Rails app doesn't work?
~~~ xhr.send({ person: { name: n, surname: s } }); ~~~ This doesn't work. Rails app receives params malformed and can't parse it. ~~~ xhr.send( { name: n, surname: s } ); ~~~ This works. I'd really like to use the first option (with nested attributes)...
ANDROID Navigation controller with back and return to start buttons.
This is an Appcelerator Titanium Question just for ANDROID. I already wrote the app in iOS, so I am only interested in making this work in ANDROID. I want to write an app with Buttons that will display a new screen. Each screen will have a question, and...
ACS & Rails
I'd like to use Appcelerator Cloud Services with Ruby on Rails so clients can manage the content of a mobile app for a product we are building. I know there is a library to do this when ACS was Cocoafish...
Cannot upload photo from app to Rails backend (with paperclip)
Hello, I am building an iOS app using the latest SDK (2.1.1) and I need to upload a photo from the app to the backend which is built on Rails and uses the Paperclip gem. This upload works fine with a CURL command in the terminal but not from the app...
xhr authentication with RESTful API
I'm trying to get the XML from my rails web application. However, it requires HTTP authentication (devise) before the user can retrieve the XML. How do I use xhr to login? I...
HTTP authentication and JSON response
I have a rails app using Devise with HTTP authentication. I want to authenticate the user from the mobile app and then send/receive JSON data between my rails web app and the mobile app. If I use cURL and use the following code: ~~~ curl -H...
HttpRequest.send with hash parameters : how it works ?
Hello, I'm new in Titanium and i'm building a mobile authentification application for android. I want to send data to a web server (Rails) with hash but it doesn't work. That's I try to send: ~~~ var params = { user : { email : 'test', password :...
iPhone + Rails + XHR = "undefined method `to_sym' for nil:NilClass"
Hello I'm trying to invoke a Rails 3 app hosted on Heroku to update a status (like functionality) If I invoke the url using the browser the update works, but when I tried to invoke using XHR I get > ConditionsController# (NoMethodError)...
Coffeescript syntax highlighting
Hi! I'm using Titanium Studio to build a Rails app which I will later write some Titanium Mobile Apps for. I'm using Rails 3.1 and Coffeescript. Titanium Studio doesn't seem to support syntax highlighting for Coffescript. - Will this feature come in the...
Appcelerator and RoR
Hi, somebody know where i can find some tutorials which explain how to use Appcelerator with Ruby on Rails? Or is it not possible to use the Appcelerator Titanium with RoR? Thx
Titanium Desktop,Ruby on rails and Mysql Newbie question
I am a little confused and i need help on titanium apps.I am a ruby on rails developer nowadays having ditched codeigniter months ago.In codeigniter i used to run my apps on wamp.My question therefore is,is it possible to have mysql being bundled with my...
406 Not Acceptable - xhr image upload to rails
I had received every response code imaginable, and tried every javascript syntax I could come up with. It turns out that a JSON header cannot be used to upload the file to Rails. Using a multipart header, it is pretty simple to configure once you get the...
Nested JSON to Rails api
Hello, I have a rails api, which requires a user object, with an email and password for authentication. JSON serialization to the rails API does not seem to work. the inner object gets escaped. Looks like others have the same issue:...
Problem : createHTTPClient doesn't work with a remote xml
Hi all, I want to get a xml frame from a remote server. Here what I do : ~~~ var urlAmv = "http://XXX.XXX.XXX.XXX:4445/api/....."; webview = Ti.UI.createWebView(); webview.url = urlAmv; var xhr =...
redirection from rails doesn't work on Windows
Hi, In my tiapp.xml, I set the url to the url of a web application wrote in ruby on rails, which returns a list of items. If I click on one of these items, it have to redirect to my index.html file in my titanium app. ~~~ redirect_to...
PHP Frameworks on Titanium
Is it possible to use PHP frameworks like Yii, Prado or Zend in Titanium? All my attempts have failed :( I'm going to start a desktop project, when I saw Titanium I got really impressed. If I can't use a framework like Yii, do you have any other sugestion...
Showing 1-16 of 16