Connect to the database you intend to use for the application through SQL*Plus and create your database objects. See What are the Database Object Conventions required by Rails when using Oracle?
2. Create the Rails Web application Navigate to working directory and create a Rails application: rails name_of_your_application Subsequent commands will run scripts that are relative to the newly created application directory, so navigate to this directory using the following command: cd name_of_your_application 3. Configure the application to use the Database Edit the database.yml file found in the config directory. Delete the contents of the file and replace them with the Oracle-specific entries. Your file should look something like this: development: adapter: oci host: ORCL username: rubydev password: rubydev test: adapter: oci host: ORCL username: rubytest password: testpassword1 production: adapter: oci host: PROD username: rubyprod password: secure_password54 4. Create the basic Model, Views, and Controller Run the following command, which will create the scaffold (in essence, an entire skeleton Web application) based upon the table in the user schema: ruby script\generate scaff
Related Questions
- Connect to the database you intend to use for the application through SQL*Plus and create your database objects. See What are the Database Object Conventions required by Rails when using Oracle?
- Can I persist my objects using serialization instead of using a relational or object database?
- How to connect Outlook with a database (create subscriptions)?