Giter Club home page Giter Club logo

ar_todos's Introduction

ActiveRecord TODOs

Before You Get Started

Before you get started...

  1. Install Correct Version of SQLite3

    Run the following from the command line:

    which sqlite3
    

    This should either print out /usr/bin/sqlite3 or /usr/local/bin/sqlite3. We want it to print out /usr/local/bin/sqlite3. If it prints out /usr/bin/sqlite3 run the following from the command line:

    brew link sqlite3
    

    Now run which sqlite3 again and make sure it says /usr/local/bin/sqlite3. If it still doesn't find a staff member to help!

  2. Run bundle from the application root directory

    From your application root directory, run the following command to install any necessary gems:

    $ bundle
    

    This will install all the gems listed in the Gemfile.

Getting Started

You're now ready to rock. Run

$ rake -T

to see the rake tasks available to you. Run rake db:create to create the (empty) database file. Run rake db:migrate to run migrations that have yet to be applied.

Create a file in the application root directory, e.g., todo.rb, to act as your main program.

File or Directory Purpose
app/models/ Location of your ActiveRecord models; filenames should be singular and `snake_case`. These are autoloaded.
app/controllers/ Location of any controller code; this isn't auto-loaded, so you'll have to manually include your controllers
db/seeds.rb Place any database seed code in this file. You automatically have access to your ActiveRecord models. Run using `rake db:seed`.
spec/ Location of your specs, using [RSpec](http://rspec.info/). Run with `rake spec`.
config/application.rb Your main application file; **do not** add user-facing code to this file. Your application should include this file.

ar_todos's People

Contributors

hewrin avatar

Watchers

 avatar  avatar  avatar

Forkers

amirulabu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.