I use rails develop blog use Avtion Text
create and show is successful.
def show require "image_processing/mini_magick" @comment=PostComment.new @[email protected]_comments.includes(:post).order(id: :desc) end def create @post=current_user.posts.new(@clear_params) if @post.save redirect_to root_path else render :new end end
In the home page ,I want list each article
question 2 I use <%= sanitize_action_text_content(post.content.body)%> solve now I hope get first picture place the content nearby
2.1m questions
2.1m answers
60 comments
57.0k users