Code Monkey home page Code Monkey logo

cta-template's Introduction

CTA Rails Application Template

This template is only tested and verified with Rails 3.2.*

Simple template for customizing the rails environment

Here's how you use this template when creating a new rails app:

rails new myapp -m https://raw.github.com/CTA/cta-template/master/cta-template.rb

If for some reason this doesn't work you can download the file and run:

rails new myapp -m cta-template.rb

List of modifications to a regular rails app:

  • Changes the database.yml to postgres defaults and creates a database.yml.example.
  • Adds a .gitignore with more common files.
  • Adds test environment generator lines to config/application.rb.
  • Adds custom spec_helper.rb file.
  • Installs Rspec instead of Test::Unit.
  • Converts application.html.erb to application.html.haml.
  • Sets up gemfile with some common gems.

Also I have provided a sample_app that was generated through this template.

cta-template's People

Contributors

hahnzilla avatar

Watchers

unholydh avatar James Cloos avatar K. Collette avatar Master avatar

cta-template's Issues

Views won't render out of the box

After initial installation of gems and project creation, I ran a scaffold generator to create a resource with views. The views were in HAML, but running the server in development wouldn't render anything until I made my own ERB views.

Add staging environment

Basically it would be cool to add a new environment for staging purposes right off the bat. You would need to add the environment file to config/environments/ and update the database.yml

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.