Skip to content
This repository
Browse code

Add screenshot to updating post section

  • Loading branch information...
commit 6f0929110464b40072b62cb1c55a0589059fe593 1 parent f9f5243
Oscar Del Ben authored
BIN  guides/assets/images/getting_started/index_action_with_edit_link.png
7  guides/source/getting_started.textile
Source Rendered
@@ -858,7 +858,7 @@ that you want to update. As before, if there was an error updating the
858 858
 post we want to show the form back to the user.
859 859
 
860 860
 TIP: you don't need to pass all attributes to +update_attributes+. For
861  
-example, if you'd call +@post.update_attributes(:title => 'A new title')
  861
+example, if you'd call +@post.update_attributes(:title => 'A new title')+
862 862
 Rails would only update the +title+ attribute, leaving all other
863 863
 attributes untouched.
864 864
 
@@ -894,6 +894,11 @@ Finally, we want to show a link to the +edit+ action in the +index+ and
894 894
 | <%= link_to 'Edit', :action => :edit, :id => @post.id %>
895 895
 </erb>
896 896
 
  897
+And here's how our app looks so far:
  898
+
  899
+!images/getting_started/index_action_with_edit_link.png(Index action
  900
+with edit link)!
  901
+
897 902
 h4. Using the Console
898 903
 
899 904
 To see your validations in action, you can use the console. The console is a

0 notes on commit 6f09291

Please sign in to comment.
Something went wrong with that request. Please try again.