图片测试:

表情测试:
:bowtie:

代码测试:

puts "Hello world!"

# coding: utf-8
class CommentsController < ApplicationController
  before_filter :require_user

  def create
    @comment = Comment.new(comment_params)
    @comment.user = current_user
    @success = @comment.save
  end

  def comment_params
    params.require(:comment).permit(:commentable_type, :commentable_id, :body)
  end
end

AT 测试:

@seveniruby

加精测试

John Smith 123 Main St. Springfield
Mary Jones 456 Pine St. Dover
Jim Baker 789 Park Ave. Lincoln


↙↙↙阅读原文可查看相关链接,并与作者交流