Require or include page in ruby on rails

Now i want to make just simple back End to my first Ruby application

so i want to make header and include it to all of the pages in this back
End
so how i can make require or include to simple Html page in ruby
(this page just i want to set some links in it )

in Php we just make page and require or include it by
require("my_page_name.php")
or
include("my_page_name.php")

how we can make that in Ruby on Rails

On 2 February 2014 10:01, Astm A. [email protected] wrote:

include("my_page_name.php")

how we can make that in Ruby on Rails

Have a look at partials, that should do what you want.
If you have not already done so then work through railstutorial.org,
which is free to use online. The use of partials is covered there, as
well as lots of other good stuff.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs