Git Product home page Git Product logo

rails-helpers's Introduction

Demo Rails App

Overview

This apps shows how to CRUD different domain objects.

  • People - super simple - no validations, few Rails helpers, ERB
  • Trees - similar to People, but uses resources in routes, and has validations
  • Gadgets - Uses named routes helpers, link_to, and form_for throughout
  • Divas - Uses implicit route helpers, content_tag, partials

Generating this app

Generate the app:

rails new rails-helpers -d postgresql -T

Delete lots of comments and unnecessary directories.

Get spec up and running by adding the following to the Gemfile

group :test do
  gem 'rspec-rails', '~> 2.14.2'
  gem 'capybara', '~> 2.2.1'
end

then run:

bundle
RAILS_ENV=test rails g rspec:install

To run migrations

bin/rake db:migrate

Getting Setup Locally

bundle
bin/rake db:create
bin/rake db:migrate
bin/rake spec

rails-helpers's People

Contributors

gnarargs avatar

Watchers

Andrew Frank avatar Robert Murray avatar David Grieser avatar Julian Yuen avatar Daniel avatar Masha Lifshin avatar James Cloos avatar Nmuta Jones avatar Sean Helvey avatar Nestor Toro avatar Jarrett Bariel avatar Jen Shannon avatar Eric Do avatar Jeff Klier avatar #9F00FF avatar Wellhausen avatar Kinsey Ann Durham avatar Eugene Wan avatar Nick Mann avatar Roger Schmidt avatar Wesley Hediger avatar Delmer avatar Wale O. avatar  avatar David Berry avatar Craig Quincy avatar  avatar Nick Fredman avatar  avatar Isto Barton avatar Cam avatar Alyssa Ebert avatar Cornellius Ngondo avatar Darren Reger avatar Matthew Bouchard avatar Teddi Maull avatar Louis Daily  avatar Brandon Campbell-Kearns avatar Aaron avatar Ja'dan Johnson avatar Robert Hajek avatar John Armbruster avatar Michelle Hoogenhout avatar  avatar Aanal Patel avatar Tom Griffey avatar  avatar  avatar Ian Smith avatar Kimberly Kost avatar SVW avatar Hamid Aghdaee avatar K-Foster-Marks avatar Mario Roaf-Esparza avatar  avatar Ife-Chudeni Oputa avatar Nick Dances avatar David Clay avatar Mairin Bailey avatar Peter Ostiguy avatar ziopads avatar  avatar Namkai Fairfield avatar Izzy Lee avatar Michael Martinez avatar Anna Patterson avatar Jonathan David Lewis avatar  avatar

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.