sudo gem install ruby-oci8
1. Go to System menu -> Administration -> Synaptic Package Manager and search for “r-base” to install R that way.
2. marked r-base for installation, then click “Apply”
3.
You can query page info such as
“per_page", “current_page", “previous_page", “offset", “next_page", “total_entries", “total_entries=", “page_count", “out_of_bounds?”
with will_paginate, you can simply replace find with paginate:
Request.paginate
For unit testing:
>ruby test/unit/request_test.rb
For create testing database
- First create a database request_test
- To copy schema across
>rake db:test
repare
If you have hard time connecting to oracle database, make sure you have oracle-adapter.rb in the correct directory.
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters
:: Next Page >>
| Next >
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||