ruby on rails - change layout on selection box change -


I want to present partially based on the selection in the selection box. It looks trivial, but I can not find any examples.

All help is appreciated.

Regards

If you try to render partially on that page The form on which the form is presented,

  <% = render: partial = & gt; ; Consult [: your_selectbox_value_matching_the_partial_you_want]%>  

So if you had a select box like

   

You have to render

  <% = render: partial = & gt; Paramaze [: The-Partial]% & gt;  

Assume that you have _partial1.html in the Windows folder. ARB and partial 2.html. ARB


Comments