Ruby on Rails UI Layer - managing divs -


i have ruby web application , want structure ui layer have few templates made of number of various divs - header, footer, , other things repeat throughout pages.

what wondering is: 1) within ruby on rails directory structure, should these divs live? somewhere under app/views/layouts ?

2) syntax import div in order still preserve values of variables set in controllers?

thanks!

you referring "partials"

http://guides.rubyonrails.org/layouts_and_rendering.html (section 3.4)

specifically, @ locals option.

layouts in 'views' can change exist. views/layouts work fine.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -