I would say that it's better to use datamapper[1] with ruby at this point. It can handle almost all basic functions needed by a database.
You can dive into raw SQLite3 later
On 12 Δεκ 2012, at 21:48 , cristian cristian <lists@ruby-forum.com> wrote:
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."
Hi!
Yes! 7Studs code works perfectly. But I changed the code to work as I
want it and that doesnt work (see my prev comment) probably because I
dont know what Im doing I installed Datamapper by the way.
On 13 Δεκ 2012, at 17:56 , cristian cristian <lists@ruby-forum.com> wrote:
Thank you for the help!
Panagiotis I will look into datamapper but now Im stuck with this
problem...
Datamapper will help you solve this problem (and other syntax problems) as it uses hashes widely and it's syntax is much more 'rubyish'.
However, the code 7stud guru posted is working perfectly. Take a look here
---------------------------------------------------------------------------------------------------------------
➜ archive git:(master) ✗ sqlite3 hellenic_words.db
SQLite version 3.7.14.1 2012-10-04 19:37:12
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
email: atma@convalesco.org
URL: http://www.convalesco.org
GnuPG ID: 0xE736C6A0
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."
Hi!
Yes! 7Studs code works perfectly. But I changed the code to work as I
want it and that doesnt work (see my prev comment) probably because I
dont know what Im doing I installed Datamapper by the way.
Your code is 'correct' syntactically but not 'semantically'
Works fine. the problem is that your value when it comes out of the database is not a 'string' while your '7' is a string... So you're matching a number(?) with a string which
will never work
On 13 Δεκ 2012, at 19:39 , cristian cristian <lists@ruby-forum.com> wrote:
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."