Skip to content

Commit

Permalink
Merge pull request #56 from tyre/patch-1
Browse files Browse the repository at this point in the history
Took out :author_url and :author_email from the comment_form partial sin...
  • Loading branch information
mattyoho committed Feb 13, 2012
2 parents 860f8c3 + 0653c75 commit 089c538
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions source/projects/jsblogger.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,6 @@ First, we need to brainstorm what a comment _is_...what kinds of data does it ha

* It's attached to an article
* It has an author name
* It usually has an author email address
* It usually has an optional URL
* It has a body

With that understanding, let's create a `Comment` model. Switch over to your terminal and enter this line:
Expand Down Expand Up @@ -1094,14 +1092,6 @@ Now we can create a form inside our `_comment_form.html.erb` partial like this:
<%= f.label :author_name %><br/>
<%= f.text_field :author_name %>
</p>
<p>
<%= f.label :author_email %><br/>
<%= f.text_field :author_email %>
</p>
<p>
<%= f.label :author_url %><br/>
<%= f.text_field :author_url %>
</p>
<p>
<%= f.label :body %><br/>
<%= f.text_area :body %>
Expand Down

0 comments on commit 089c538

Please sign in to comment.