2 Replies Latest reply on Apr 16, 2013 1:21 AM by Ankur Srivastava

    Controllers and erb

      I am new to RhoMobile. I have doubt in controllers and attached erb.

      I am fiollowing tutorials "http://docs.rhomobile.com/rhodes/ui"
      "How to make an AJAX call and update page elements"

      I can see the html code, but where should I write the controller part? It is written

      To handle AJAX request a controller action method can return JSON object this way:

      def get_json
        render :string => '{"a": 1, "b": 2, "c": 3}'
      end

      How to create a new controller and attach its erb to work togather?