app/controllers/wall_comments_controller.rb
# Used for both wall and blog comments.
Used for both wall and blog comments.
Used for both wall and blog comments .
def new
    @title = "新增留言"
    @wall_comment = parent.wall_comments.new
    respond_to do |format|
      format.html { render :action => resource_template("new") }
    end
  end
def new @title = "新增留言" @wall_comment = parent . wall_comments . new respond_to do | format | format . html { render :action => resource_template ( "new" ) } end end
Used for both wall and blog comments.
Used for both wall and blog comments .