On Fri, Jun 13, 2014 at 5:03 PM, Damián M. González <[email protected]> wrote:
> I want > to abstract some parts like the footer and the upper part to another > file, for easy reading and order. > This can be achieved by layouts. In the layouts/application.html.erb file you can call different partial views using the render keyword <%= render 'layouts/sidebar' %> The sidebar code can be in a file called _sidebar.html.erb in the layouts folder. The underscore is rails convention Thanks, Ganesh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoE9RKH9y%2B%2Bakk58GDsYtY1uCtr16azi5uGBuoVQ2nTYhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

