aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.textile
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-24 14:22:19 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-24 14:22:19 +0200
commitf92814e4cc2a381fab7df374fbee5f86ebe91fa6 (patch)
tree000676c537374a68753faa05fe64f6c331bd2be7 /guides/source/getting_started.textile
parentf0de7172a6e1a52bf122578954d805a36a488d27 (diff)
downloadrails-f92814e4cc2a381fab7df374fbee5f86ebe91fa6.tar.gz
rails-f92814e4cc2a381fab7df374fbee5f86ebe91fa6.tar.bz2
rails-f92814e4cc2a381fab7df374fbee5f86ebe91fa6.zip
make sample code more compact
Diffstat (limited to 'guides/source/getting_started.textile')
-rw-r--r--guides/source/getting_started.textile14
1 files changed, 1 insertions, 13 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile
index 478aa74f27..d52e3f65a7 100644
--- a/guides/source/getting_started.textile
+++ b/guides/source/getting_started.textile
@@ -619,19 +619,7 @@ Let's add links to the other views as well.
# app/views/posts/new.html.erb
<%= form_for :post do |f| %>
- <p>
- <%= f.label :title %><br>
- <%= f.text_field :title %>
- </p>
-
- <p>
- <%= f.label :text %><br>
- <%= f.text_area :text %>
- </p>
-
- <p>
- <%= f.submit %>
- </p>
+ ...
<% end %>
<%= link_to 'Back', :action => :index %>