I am developing a Rhomobile application,on submit of a POST method, i am going to my 'Model 1' action, after execution of my action i want to redirect to another model's (Model 2) Index action and list the data.
I am from a Rails background, there i would have used URL, any similar concept exists here or any solution.
i tried, but it didn't worked for me render :controller => :model2, :action => :index
Please Note: I have never used
rhodesand all of this information was acquired by simply reading the API documentation and taking a look at the source code.According to the documentation You should be able to deal with this in a very railsy fashion eg
Seems the only caveat is if this redirection is to happen in a callback function. In this case the redirection should be handled by the
WebViewinstead e.g.Source for Rho::RhoController#redirect supports these statements in the documentation.
Additionally as you might notice above it appears that
Rhohas ported a lot of the rails like helpers includingurl_for