Code Monkey home page Code Monkey logo

bridgetroll's Introduction

======= OMG RAILS IS SO AWESOME

== Up and running This app is done with ruby 1.9.2 and rails 3.1.

Assumptions You have rvm installed; if not, you should check out http://beginrescueend.com/rvm/install/

First you need to get the code, install gems and create database: $ git clone https://github.com/ultrasaurus/bridgetroll.git $ cd bridgetroll $ bundle install

if you get an error and don't have a bundler installed run $gem install bundler

$ rake db:migrate $ rails server

Go to http://localhost:3000/ and you can play with the app.

== Steps done on 1/17/12:

$ rails new bridgetroll -T $ cd bridgetroll/ $ git init $ git add . $ git status $ git commit -m "brand new rails app"

add this to the Gemfile gem 'devise'

$ bundle

$ rails g scaffold event title:string $ rake db:migrate

$ rails generate devise:install create config/initializers/devise.rb create config/locales/devise.en.yml

Setup you must do manually if you haven't yet:

  1. In config/environments/development.rb development environment:

    config.action_mailer.default_url_options = { :host => 'localhost:3000' }

    This is a required Rails configuration. In production it must be the actual host of your application

  2. Ensure you have defined root_url to something in your config/routes.rb. For example:

    root :to => "events#index"

  3. Ensure you have flash messages in app/views/layouts/application.html.erb. For example:

    <%= notice %>

    <%= alert %>

$ rails g devise:install

add this to config/environments/development.rb config.action_mailer.default_url_options = { :host => 'localhost:3000' }

add this to config/routes.rb root :to => "events#index"

$ git rm public/index.html

add this to app/views/layouts/application.html.erb (under the yield)

<%= notice %>

<%= alert %>

add this to config/application.rb config.assets.initialize_on_precompile = false

$ rails generate devise User

uncomment out some of the features that you want in the user model (app/models/user.rb) and the migration file (in my case db/migrate/20120118045557_devise_create_users.rb ) see http://blazingcloud.net/2011/01/08/devise-authentication-in-rails-3/

$ rake db:migrate

$ rails generate devise:views

bridgetroll's People

Contributors

judytuna avatar nrevko avatar ultrasaurus avatar dnsco avatar ndun avatar

Stargazers

Magee Mooney Caliguire avatar

Watchers

James Cloos 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.