zachgersh/diy_overflow — pull request #14 by MarkDucommun (2013-08-29 19:19:22+00:00)
Title: adds feature to allow user to add answer to a question, all tests, files...

... included

adds answer controller

adds answer form to question show page

answer integration test breaking in the rigth place

create model, controller, spec for answers

add routes, resource, and 2 actions for answers controller

modify answer_controller to have an associated question

adds blank answer to view for form

changes text area label from 'answer_content' to 'content'

adds a test for has_many association with answers

modifies existing validation test, association test to utilize shoulda-matchers

removes unnecessary let statements and doubles

adds association belongs_to question, to answer model

adds association has_many answers to question model

makes parent_id mass-assignable

explicitly assign content to answer

adds answers to the show question view

removes save_and_open_page

removes a stray word

removes utterly unnecessary comments

removes an extra space