P
phalcos
Hello Rubygroup,
Im quite new to Ruby (unexpected heh?) but is currently planning on
building a website community with it just in order to see how powerful
it accually can be. I usually use PHP when building webapplications but
since ruby works great for that too, I was curious and thus I have some
(yes, newbie-) questions. I have already Installed Ruby as a module for
apache, so that part works perfect, I've also read some of the
documents on http://www.ruby-lang.org
1. How can I make sure the userinput only contains certain characters?
Like if I only want my users to be able to give me [A-Za-z0-9], is
regex the only alternative?
2. Is there any builtin method for converting html-characters into safe
input, like what htmlspecialchars in PHP does?
3. Methods for SQL database storage?
3. Anything else I should think about?
If not, wish me luck. =)
Thanks,
-- phalcos
Im quite new to Ruby (unexpected heh?) but is currently planning on
building a website community with it just in order to see how powerful
it accually can be. I usually use PHP when building webapplications but
since ruby works great for that too, I was curious and thus I have some
(yes, newbie-) questions. I have already Installed Ruby as a module for
apache, so that part works perfect, I've also read some of the
documents on http://www.ruby-lang.org
1. How can I make sure the userinput only contains certain characters?
Like if I only want my users to be able to give me [A-Za-z0-9], is
regex the only alternative?
2. Is there any builtin method for converting html-characters into safe
input, like what htmlspecialchars in PHP does?
3. Methods for SQL database storage?
3. Anything else I should think about?
If not, wish me luck. =)
Thanks,
-- phalcos