ruby on rails - Show different partial in Controller#show -


i have 3 different partials, each representing different step of process: "_overview.slim", "_setup.slim", , "_submit.slim". want show these 3 different partials in "show.slim" 1 @ time, , 1 after user clicks on "go next step". how can accomplish in show action of controller?

let in show,have 'next' button trigger next partial.

in 'next' button, can pass param[:page1] , necessary param when click. in 'show', if there param[:page1] ,then display _partial1.html.erb

its goes same.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -