franktank / edudat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edudat

This was built for UF CIS4301
This application is connected to UF's CISE Oracle

To connect, do the following:

Download corresponding Oracle Instant Client files for Basic Client, SDK, and SQLPlus

http://www.oracle.com/technetwork/topics/linux-amd64-093390.html

Make directory /opt/oracle

 cd /opt
 mkdir oracle

Unzip the downloaded files into /opt/oracle
unzip /home/user/Downloads/instantclient-sql...
unzip /home/user/Downloads/instantclient-sdk...
unzip /home/user/Downloads/instantclient-basic…
ln -s libclntsh.so.12.1 libclntsh.so
ln -s libocci.so.12.1 libocci.so

Then inside /opt/oracle/instantclient...

Run:

export ORACLE_HOME=$(pwd)
export LD_LIBRARY_PATH=$(pwd)

Use the following gem:

https://github.com/rsim/oracle-enhanced

How to execute the SQL commands:

http://api.rubyonrails.org/classes/ActiveRecord/Result.html

Finally, change database.yml to have

default: &default
adapter: oracle_enhanced
database: orcl
host: oracle.cise.ufl.edu
username: ?
password: ?
port: 1521

Form

<%= form_tag(root_path, :method => "get", id: "search-form") do %> <%= label_tag(:count_hispanic, "Number of Hispanics > ") %> <%= text_field_tag :count_hispanic, params[:count_hispanic], placeholder: "200" %> <br> <%= label_tag(:enrollment, "School Enrollment > ") %> <%= text_field_tag :enrollment, params[:enrollment], placeholder: "4000" %> <br> <%= submit_tag "Search" %> <% end %>

Functionality

The following functionality is complete:

About


Languages

Language:Ruby 67.2%Language:HTML 29.7%Language:CSS 1.6%Language:JavaScript 1.5%