I modified the "rhoconfig.txt", so it will start in the LoadData folder with a controller called LoadDataController.
and I can return back using the "Rho::RhoConfig.start_path", but I don't know how to return back to the home page pro-grammatically.
1 of 1 people found this helpful
Hi Sinan Hannouneh,
To go to the LoadData model when an app start, change start_path in the rhoconfig file as shown below
# startup page for your application
start_path = '/app/LoadData'
Sinan, you can also try the following:
Leave the rhoconfig.txt as default i.e. start_path = '/app'
Then in the application.rb file add some logic to determine where to go next
if @firstime.initialized == 'true'
You could have a setup model call firstime that whould be loaded with setup data.
from the loaddata controller, you would have logic to go to index once started.