Topic: Require a template in another one
Hi,
I began to use rails this week, so I'm yet a beginner ! I find this is almost easy to learn, but now I got some problems that I want to solve before beginning seriously to developp something.
With php, I was used to separate my pages in 3 sections :
-Header
-Body
-Footer
The header is the part that contain all the top of each page (not only the <head></head> tag). I had only one template that was included in all pages.
The body was a part different for each page, it's the main part.
And finally, at the bottom, the footer that contain a copyright and everythin...
But now I want to do it with rails, and I don't find how because I'm not able to display more than one template at time, the one that's called automatically.
I tried to put <%= require "header.rhtml" %> but I get this error :
No such file to load -- header.rhtml
Thanks everyone
.