jrubyonrails - JRuby on Rails without a database -


I am kicking a new rail project in NetBeans using JRB (v1.2.0) which uses rail (2.3.2)

I have removed this line in my environment

config.frameworks - = [: active_record,: active_resource,: Action_mailer]

However, I am also trying to call an error. Hosting on GlassFish

java.net.SocketException: java.net.ConnectException: Connection refused: com.mysql.jdbc.StandardSocketFactory.connect Connect on (StandardSocketFactory.java:156) Com.mysql.jdbc at Com On .mysql.jdbc.Connection at com.mysql.jdbc.Connection.createNewIO (connection.javajoy666). Magicalo (MysqlIO.java.776) (Connection. Java.1531)

Any ideas, where can I need changes to not use any databases? Thanks

The first step, make sure that you have config / environment / [any environment specific in your NY Not override] .RB

I have just done one test:

  1. Create a new rail app
  2. config / environment.rb config.
  3. Edit the browser to make the frameworks incomplete
  4. jruby script / server
  5. Point Browser on the local host:
  6. 3000 / hello

All OK - An ActiveRecord Error Not how to do?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -