Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
ERB « Rails « Ruby
Ruby
Rails
ERB
1.
In Rails, embedded Ruby in .rhtml pages is run using a processor called ERb, for Embedded Ruby.
2.
You can mix HTML and ERb as well
3.
Mix Ruby Code and HTML
4.
use puts to display text in a web page (It was printed out in the console.)
5.
A loop executes the body of the loop
6.
uses the Ruby Time.now method to display the current time
7.
Escaping Sensitive Text