I have this.
Where can i find config/routes.rb and how to use ApplicationController in Rhomobile?
How to add a view to existing rhomobile controller?
Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
config/routes.rb doesn’t exist in Rhomobile. If i’m not wrong, then it’s present in rails.
Secondly “application.rb” works similar to “ApplicationController” in Rhomobile.
And if in case you want to add new view to existing model, just add new method(def) into the controller(.rb), and new view(.erb) with the same name as of the new method.
let say there exist a model DemoController.rb in app/Demo. you can add new method to it as like
To navigate from the index view to the new_method, you can write
or