View Single Post
  #3 (permalink)  
Old December 12th, 2008, 02:09 AM
lovefool lovefool is offline
Registered User
 
Join Date: Dec 2008
Location: Shizuoka, Japan
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up input.rhtml for RoR 2.2.2

P.147 input.html.erb


Quote:
<html>
<head>
<title>Using Text Fields</title>
</head>

<body>
<h1>Working With Text Fields</h1>
This Ruby on Rails application lets you read data from text fields.
<br>

<% form_tag('/look/at') do %>
Please enter your name.
<br>
<%= text_field ("cruncher", "crunch", {"size" => 30}) %>
<br>
<%=submit_tag (value="SUBMIT") %>
<% end %>

</body>
</html>