This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initialize db (from what I remember that I did) | |
# dbinit -n <server-name> -gd all -sn Test <db-file> | |
Start db (not required to be in an init.d file, dbsrv12 or dbeng12 will start one, just pass the args or an arg file) | |
# sudo /etc/init.d/sa12 start | |
install native driver gem after you install sqlanywhere 12 | |
might require a LIBPATH to be set to the sqlany12 .so libs | |
# gem install sqlanywhere |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
require 'pp' | |
Sequel.require 'adapters/utils/stored_procedures' | |
module Sequel | |
# Houses Sequel's JDBC support when running on JRuby. | |
module JDBC | |
# Make it accesing the java.lang hierarchy more ruby friendly. | |
module JavaLang | |
include_package 'java.lang' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/* | |
* BayControllerFrame.java | |
* | |
* Created on Oct 19, 2011, 9:11:11 AM | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for([@tournament,@player], :remote => true) do |f| %> | |
<p> | |
<%= f.label :name, 'Name' %><br /> | |
<%= f.text_field :name %> | |
</p> | |
<p> | |
<%= f.label :email, 'Email' %><br /> | |
<%= f.text_field :email %> | |
</p> | |
<p> |