I have created a simple application and edited the index.erb file so that I have a simple view with a text box and a button.
Now when i click on that button i want it to navigate to a new view. I know that we can add models and in that models we have different .erb files. but i want to create a single .erb file or add it to an existing model so that i can change edit the view and call that view as i press the button.
Is it like for every screen we have to create a model??
I dont know how to do the same, i tried searching but no help so far.
See Question&Answers more detail:os