Add snippet and previous iteration ivars to iterations controller's new action.
Add code and hidden snippet_id fields to iteration form.
Link to snippet_iterations_path in iterations new view.
Move iteration code into HTML code tag within a pre tag.
Add prism.js and prism.css to assets.
Migration: change iteration code from string type to text type.
"rails g scaffold_controller Snippet".
Can now create snippets.
Change snippet show view edit link to new iteration of snippet link.
Add votable methods helper.
Show iterations on snippet show view.
Include votable methods module in comment and iteration models.
Add latest_iteration instance variable in snippet controller's show action.
Language should be same as the previous iteration on new iteration form (hidden field).
Add vote links to comments.
Include polymorphic methods in votable methods module.
Move iteration's urlable_type method into polymophic methods module.
Add custom error message for vote uniqueness validation.
Remove vote if it already exists, with :conflict status code in JSON.