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