lundi 24 août 2015

SQlite error: "no such table "

I am currently building a simple bank program in Ruby. I have set it up MVC style. I am getting the following error message.

/home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `initialize': no such table: managers (SQLite3::SQLException)
from /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `new'
from /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `prepare'
from /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:134:in `execute'
from /home/devil/Desktop/RubyBank-manager_model/model.rb:19:in `initialize_database'
from /home/devil/Desktop/RubyBank-manager_model/model.rb:7:in `initialize'
from controller.rb:8:in `new'
from controller.rb:8:in `initialize'
from controller.rb:124:in `new'
from controller.rb:124:in `<main>'

Earlier in the day the program was working fine. I changed a local variable's name in a controller method and it started to throw me the above error.

Things I have tried that have failed:

  • Update my SQlite gem files to the latest version.

  • Revert to previous commits from my GitHub that worked and tried to run the program.

  • Revert ONLY the local variable method in question back to it's former functioning name.

  • Googling to my heart's content.

SEE MY GITHUB FOR PROGRAM CODE: http://ift.tt/1hag0vX

Aucun commentaire:

Enregistrer un commentaire