/rubynewb

This is an open source project to help organize all efforts of the Ruby Newbies.

Primary LanguageRuby

logo
This is an open source project, feel free to change anything.

Site is available at RubyNewbies.org

####How to Contribute

  1. Edit on Github For small changes like adding links to student solutions or fixing typos, it's easiest to just edit the file directly on Github, which Erik show's how to do in this Odin YouTube video.

  2. Pull Request: To contribute in ways that are larger than what can be done directly on Github or if you're expecting to make several contributions over time, it is best to submit a Pull Request. Erik describes that workflow in this YouTube video here and Github has good documentation and video support as well. Basically, you will fork this repository, make your changes or additions to the appropriate file, then submit a pull request with your changes.

  3. Github Issue: You can also open up a Github Issue instead and the group will take care of it. About Github Issues

  • Please note to only create a pull request to the Develop branch

Gitflow

The preferred method for working local is git flow

Please do the following setup afte downloading your fork locally.

  1. git flow init to install git flow, follow the setup prompts and use the defaults
  2. git flow feature start <my-feature-name>
  3. git push origin <my-feature-name>

When finished with feature: 4. Create pull request(from your fork on github) 5. git flow feature finish <my-feature-name> 6. git push origin <branch> if needed

General Setup Instructions

Install gems

  1. bundle install --without production
  2. bundle exec rake db:migrate

*New for Rails 4 Copy the config/secrets.yml and set your keys using the rake secret command

Postgres Instructions

$ brew update
$ brew install postgres --no-python
$ initdb /usr/local/var/postgres -E utf8

To start PostgreSQL at login:

$ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

####Thanks

Special Thanks to the Odin Project for making this happen!