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
1.4m articles
1.4m replys
5 comments
57.0k users