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 some parts like the footer and the upper part to another
> file, for easy reading and order. My clue is to call render() to each
> file(footer and upper), but is that fine? Do you use another way to do
> this? can sugget me? Thank you.

As a newcomer to Rails I suggest you work right through a good
tutorial such as railstutorial.org.  That will show you the basics
including how to use partials, which is what you are looking for.

Colin

-- 
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtKzbPEdVix%2BSgf6UPzj9QT_i7-mHGQsGHrZAUaqDKDYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to