å®æçã« rails render controller ã§æ¤ç´¢ãããæ¹ããããããªã®ã§ãããä¸åº¦ã¾ã¨ãã ã¾ã rails ã® ActionController ã® render ã« :controller ãªãã·ã§ã³ã¯ããã¾ãããã³ã³ããã¼ã©ãã¾ããã ã¬ã³ããªã³ã°ãè¡ããããªã :template ã :file ãªãã·ã§ã³ã使ãã°å®ç¾ã§ãã¾ãã # comments_controller.rb def create @post = Post.find(params[:post_id]) if @post @comment = Comment.new(params[:comment]) @comment.post = @post @comment.remote_host = request.remote_ip if @comment.save redirect_to @post els
{{#tags}}- {{label}}
{{/tags}}