Commit e0af7cefb4c92b474d14116b40927d70c13e78cc
1 parent
03de5a5c
Exists in
master
and in
4 other branches
Typos fixed
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
app/controllers/snippets_controller.rb
@@ -31,11 +31,11 @@ class SnippetsController < ApplicationController | @@ -31,11 +31,11 @@ class SnippetsController < ApplicationController | ||
31 | end | 31 | end |
32 | 32 | ||
33 | def new | 33 | def new |
34 | - @snippet = PersonalSnippet.build | 34 | + @snippet = PersonalSnippet.new |
35 | end | 35 | end |
36 | 36 | ||
37 | def create | 37 | def create |
38 | - @snippet = PersonalSnippet.build(params[:personal_snippet]) | 38 | + @snippet = PersonalSnippet.new(params[:personal_snippet]) |
39 | @snippet.author = current_user | 39 | @snippet.author = current_user |
40 | 40 | ||
41 | if @snippet.save | 41 | if @snippet.save |
features/snippets/snippets.feature
features/steps/snippets/snippets.rb