Skip to content

whoop/ar-to-assignment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveRecord TODOs

Before You Get Started

Before you get started...

  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%