Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # This file is called "show.rb" in the "app/controllers/accounts/" directory
  2.  
  3. # Make a call to the database
  4. account = Account.find params[:id]
  5.  
  6. # Respond to the request with HTML.
  7. html5.generate do
  8.   para do
  9.     label "Email"
  10.     field account.email
  11.   end
  12. end