# Website comments with ruby

**URL:** <https://www.ruby-forum.com/t/website-comments-with-ruby/125063>\
**Category:** Ruby\
**Created:** [January 4, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/website-comments-with-ruby/125063 "2008-01-04T22:52:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://www.ruby-forum.com/u/sam)\
**Post date:** [January 4, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/website-comments-with-ruby/125063/1 "2008-01-04T22:52:31Z")

</div>

I have a website and I would like some of the pages to be able to accept  
user comments. I know there at alot of simple php scripts that do this  
so I am sure there is something like this in Ruby right? I know there  
are blogs done in Ruby but I am really just looking for something  
simpler. I am new to programming and ruby so doing this myself is not  
an option as of yet.

Thanks,  
Sam

---

<div class="post-metadata">

**Author:** ![sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://www.ruby-forum.com/u/sam)\
**Post date:** [January 5, 2008, 12:12am UTC](https://www.ruby-forum.com/t/website-comments-with-ruby/125063/2 "2008-01-05T00:12:40Z")

</div>

On Jan 4, 2008, at 3:50 PM, Sam wrote:

> I have a website and I would like some of the pages to be able to  
> accept user comments. I know there at alot of simple php scripts  
> that do this so I am sure there is something like this in Ruby  
> right? I know there are blogs done in Ruby but I am really just  
> looking for something simpler. I am new to programming and ruby so  
> doing this myself is not an option as of yet.
> 
> Thanks,  
> Sam

The Ruby for this is not going to be any simpler than PHP, basically.  
You still need either a very user friendly tool built in one of the 2  
languages, or another language, or knowledge of a scripting language,  
plus knowledge of html and maybe a little Javascript.  
I’d recommend picking up one of the Oreilly cookbooks on PHP or Ruby  
or Python or Perl or something similar.  
The problem with many Ruby books and web site development is that  
most of them simply refer to Rails for web development, but that can  
be overkill for a lot of things.

All you need fundamentally are:  
a scripting language and shell access to the server,  
an html form that calls a script on the server (script written in one  
of the above languages most likely),  
some sort of validation to make sure it’s a human and not a spammer,  
some way of storing the comments and adding them to the page (this  
can either be in a database or in files, even added to the original  
html file, if you like).

The reason most people just go with WordPress or some other blogging  
platform is because the comment-spam issue, and the programming is  
already well addressed. With web forms, spam and other malicious crap  
can be the biggest trouble.
