# Give Rhtml tutorial links

**URL:** <https://discuss.rubyonrails.org/t/give-rhtml-tutorial-links/10164>\
**Category:** rubyonrails-talk\
**Created:** [March 13, 2007, 6:53am UTC](https://discuss.rubyonrails.org/t/give-rhtml-tutorial-links/10164 "2007-03-13T06:53:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabu](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@prabu](https://discuss.rubyonrails.org/u/prabu)\
**Post date:** [March 13, 2007, 6:53am UTC](https://discuss.rubyonrails.org/t/give-rhtml-tutorial-links/10164/1 "2007-03-13T06:53:43Z")

</div>

please give the rhtml tutorial links

---

<div class="post-metadata">

**Author:** ![Ramon](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@Ramon](https://discuss.rubyonrails.org/u/Ramon)\
**Post date:** [March 13, 2007, 11:44am UTC](https://discuss.rubyonrails.org/t/give-rhtml-tutorial-links/10164/2 "2007-03-13T11:44:43Z")

</div>

If you will do rhtml, you will need to know Ruby first. If you already know Ruby, you'll know how to do rhtml. Look at the tutorials found in www.rubyonrails.org

---

<div class="post-metadata">

**Author:** ![prabu](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@prabu](https://discuss.rubyonrails.org/u/prabu)\
**Post date:** [March 15, 2007, 5:40am UTC](https://discuss.rubyonrails.org/t/give-rhtml-tutorial-links/10164/3 "2007-03-15T05:40:56Z")

</div>

fist of all i thank to u already i gone through this site so can u give other links to learn rhtml plz give me

---

<div class="post-metadata">

**Author:** ![Faisal\_N\_Jawdat](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@Faisal\_N\_Jawdat](https://discuss.rubyonrails.org/u/Faisal_N_Jawdat)\
**Post date:** [March 15, 2007, 8:41pm UTC](https://discuss.rubyonrails.org/t/give-rhtml-tutorial-links/10164/4 "2007-03-15T20:41:47Z")

</div>

rhtml is html plus:

\<% some\_ruby\_code\_here %\> will evaluate the ruby code without  
producing output

\<%= some\_ruby\_code\_here %\> will evaluate the code and output the results

for example, given a collection of posts with each post having a  
name, then:

\<% posts.each do |p| %\> &nbsp;&nbsp;&nbsp;\<%= h(p.name) %\> \<% end %\>

will output the sanitized name for each post. the name is the result  
of the name method, and the sanitizing is done by the h() helper  
method. your view has access to all the helper methods for your  
controller, as defined in the appropriate helper.rb.

-faisal
