Skip to content
This repository
Browse code

change class to id per scaffold change

  • Loading branch information...
commit 3cf22c8ab5294a332c6f4e20174c50165265f1d1 1 parent 2d76d1f
authored January 15, 2012
14  railties/guides/source/getting_started.textile
Source Rendered
@@ -1014,7 +1014,7 @@ by its id value. After finding the record, Rails displays it by using
1014 1014
 +app/views/posts/show.html.erb+:
1015 1015
 
1016 1016
 <erb>
1017  
-<p class="notice"><%= notice %></p>
  1017
+<p id="notice"><%= notice %></p>
1018 1018
 
1019 1019
 <p>
1020 1020
   <b>Name:</b>
@@ -1281,7 +1281,7 @@ So first, we'll wire up the Post show template
1281 1281
 (+/app/views/posts/show.html.erb+) to let us make a new comment:
1282 1282
 
1283 1283
 <erb>
1284  
-<p class="notice"><%= notice %></p>
  1284
+<p id="notice"><%= notice %></p>
1285 1285
 
1286 1286
 <p>
1287 1287
   <b>Name:</b>
@@ -1347,7 +1347,7 @@ template. This is where we want the comment to show, so let's add that to the
1347 1347
 +app/views/posts/show.html.erb+.
1348 1348
 
1349 1349
 <erb>
1350  
-<p class="notice"><%= notice %></p>
  1350
+<p id="notice"><%= notice %></p>
1351 1351
 
1352 1352
 <p>
1353 1353
   <b>Name:</b>
@@ -1429,7 +1429,7 @@ Then you can change +app/views/posts/show.html.erb+ to look like the
1429 1429
 following:
1430 1430
 
1431 1431
 <erb>
1432  
-<p class="notice"><%= notice %></p>
  1432
+<p id="notice"><%= notice %></p>
1433 1433
 
1434 1434
 <p>
1435 1435
   <b>Name:</b>
@@ -1500,7 +1500,7 @@ create a file +app/views/comments/_form.html.erb+ containing:
1500 1500
 Then you make the +app/views/posts/show.html.erb+ look like the following:
1501 1501
 
1502 1502
 <erb>
1503  
-<p class="notice"><%= notice %></p>
  1503
+<p id="notice"><%= notice %></p>
1504 1504
 
1505 1505
 <p>
1506 1506
   <b>Name:</b>
@@ -1771,7 +1771,7 @@ Finally, we will edit the <tt>app/views/posts/show.html.erb</tt> template to
1771 1771
 show our tags.
1772 1772
 
1773 1773
 <erb>
1774  
-<p class="notice"><%= notice %></p>
  1774
+<p id="notice"><%= notice %></p>
1775 1775
 
1776 1776
 <p>
1777 1777
   <b>Name:</b>
@@ -1831,7 +1831,7 @@ Now you can edit the view in <tt>app/views/posts/show.html.erb</tt> to look like
1831 1831
 this:
1832 1832
 
1833 1833
 <erb>
1834  
-<p class="notice"><%= notice %></p>
  1834
+<p id="notice"><%= notice %></p>
1835 1835
 
1836 1836
 <p>
1837 1837
   <b>Name:</b>

0 notes on commit 3cf22c8

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