Hear us Roar
Article:
 |
|
Rolling with Ruby on Rails
|
| Subject: |
|
Extra spaces in instructions after final step |
| Date: |
|
2005-02-04 03:23:28 |
| From: |
|
pinzellacchero
|
|
|
|
Great article, really, it made my day.
Just a minor issue: having copied&pasted edit.rhtml code from the article I observed some extra spaces in front of instructions field.
This is the generated html. As you can see extra spaces are maintained and rendered while in textarea. This may cause some confusion.
Cheers!
<html>
<head>
<title>Edit Recipe</title>
</head>
<body>
<h1>Edit Recipe</h1>
<form action="../update" method="POST">
<input id="recipe_id" name="recipe[id]" size="30"
type="hidden" value="3" />
Title
<input id="recipe_title" name="recipe[title]" size="30"
type="text" value="Ice Water" />
Description
<input id="recipe_description" name="recipe[description]"
size="30" type="text"
value="favorite" />
Category:
<select name="recipe[category_id]">
<option value="1"
>
snaks
</option>
<option value="2"
selected>
bev
</option>
</select>
Instructions
<textarea cols="40" id="recipe_instructions"
name="recipe[instructions]"
rows="20" wrap="virtual">
put ice cubes
</textarea>
<input type="submit" value="Update" />
</form>
Show
|
Back
</body>
</html>
|
|
| |