On 2 February 2014 10:01, Astm Ali <[email protected]> wrote:
> 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

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

-- 
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/CAL%3D0gLt6LHesnSiWz-w%2BJU%3DBH1dhfwe_7BqOA%2BBnoDV6wDpQ1w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to