[Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Damián M. González
Hi guys. I'm relatively new to rails, not to ruby. Was wondering how can I call an HTML file(perhaps *.erb.html) from another HTML file. I'm writing HTML in the application layout(application.html.erb) and I want to abstract some parts like the footer and the upper part to another file, for easy

Re: [Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Ganesh Ranganathan
On Fri, Jun 13, 2014 at 5:03 PM, Damián M. González li...@ruby-forum.com 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

Re: [Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Colin Law
On 13 June 2014 12:33, Damián M. González li...@ruby-forum.com wrote: Hi guys. I'm relatively new to rails, not to ruby. Was wondering how can I call an HTML file(perhaps *.erb.html) from another HTML file. I'm writing HTML in the application layout(application.html.erb) and I want to abstract