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
Post a Comment