Give Rhtml tutorial links


#1

please give the rhtml tutorial links


#2

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

On 3/13/07, prabu removed_email_address@domain.invalid wrote:

please give the rhtml tutorial links


Ramon Miguel M. Tayag


#3

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


#4

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| %>
<%= 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


#5

Hi,
Follow this link, http://blog.nanorails.com/pages/rails_1.1_cheat_sheet
its actually a cheat sheet for ruby,rails,rhtml,rjs etc., like a quick
reference
but it has most of the tags of the rhtml,

Harish