This is my Rails code:
def update
if @post.update(post_params)
redirect_to @post, notice: “Update successful”
else
render ‘edit’
end
end
I get an error:
/home/mieds/Documents/Marmelade/app/controllers/posts_controller.rb:34: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
Any ideas on why this is thrown?
'edit'
instead of‘edit’
? also"Update successful"
instead of“Update successful”
– kiddorails Oct 2 '17 at 5:44