Skip to content

Commit

Permalink
rails_apps_composer: add README files
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKehoe committed Feb 26, 2014
1 parent 2b023f3 commit d6b4896
Show file tree
Hide file tree
Showing 11 changed files with 277 additions and 86 deletions.
62 changes: 58 additions & 4 deletions README
@@ -1,4 +1,58 @@
RECIPES
["apps4", "controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "prelaunch", "railsapps", "readme", "routes", "saas", "setup", "testing", "views"]
PREFERENCES
{:git=>true, :apps4=>"rails-omniauth", :unit_test=>false, :integration=>false, :fixtures=>false, :email=>"none", :authentication=>"omniauth", :authorization=>"none", :starter_app=>false, :quiet_assets=>true, :local_env_file=>false, :better_errors=>true, :dev_webserver=>"webrick", :prod_webserver=>"same", :database=>"sqlite", :templates=>"erb", :continuous_testing=>"none", :frontend=>"simple", :omniauth_provider=>"twitter", :form_builder=>"none"}
Rails Omniauth
========================

This application was generated with the rails_apps_composer gem:
https://github.com/RailsApps/rails_apps_composer
provided by the RailsApps Project:
http://railsapps.github.io/

________________________

Recipes:

* apps4
* controllers
* core
* email
* extras
* frontend
* gems
* git
* init
* models
* prelaunch
* railsapps
* readme
* routes
* saas
* setup
* testing
* views

Preferences:

* git: true
* apps4: rails-omniauth
* unit_test: false
* integration: false
* fixtures: false
* email: none
* authentication: omniauth
* authorization: none
* starter_app: false
* quiet_assets: true
* local_env_file: false
* better_errors: true
* dev_webserver: webrick
* prod_webserver: same
* database: sqlite
* templates: erb
* continuous_testing: none
* frontend: simple
* omniauth_provider: twitter
* form_builder: none
* rvmrc: true

________________________

License
140 changes: 140 additions & 0 deletions README.md
@@ -0,0 +1,140 @@
Rails Omniauth
=========

This application was generated with the [rails_apps_composer](https://github.com/RailsApps/rails_apps_composer) gem
provided by the [RailsApps Project](http://railsapps.github.io/).

Diagnostics
-

This application was built with recipes that are known to work together.

This application was built with preferences that are NOT known to work
together.

If the application doesn’t work as expected, please [report an issue](https://github.com/RailsApps/rails_apps_composer/issues)
and include these diagnostics:

We’d also like to know if you’ve found combinations of recipes or
preferences that do work together.

Recipes:

* apps4
* controllers
* core
* email
* extras
* frontend
* gems
* git
* init
* models
* prelaunch
* railsapps
* readme
* routes
* saas
* setup
* testing
* views

Preferences:

* git: true
* apps4: rails-omniauth
* unit_test: false
* integration: false
* fixtures: false
* email: none
* authentication: omniauth
* authorization: none
* starter_app: false
* quiet_assets: true
* local_env_file: false
* better_errors: true
* dev_webserver: webrick
* prod_webserver: same
* database: sqlite
* templates: erb
* continuous_testing: none
* frontend: simple
* omniauth_provider: twitter
* form_builder: none
* rvmrc: true

Ruby on Rails
---

This application requires:

- Ruby
- Rails

Learn more about [Installing Rails](http://railsapps.github.io/installing-rails.html).

Database
---

This application uses SQLite with ActiveRecord.

Development
-

- Template Engine: ERB
- Testing Framework: Test::Unit
- Front-end Framework: None
- Form Builder: None
- Authentication: OmniAuth
- Authorization: None
- Admin: None






delivery is disabled in development.

Getting Started


Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Documentation and Support


This is the only documentation.

#### Issues

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Similar Projects
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Contributing
--

If you make improvements to this application, please share with others.

- Fork the project on GitHub.
- Make your feature addition or bug fix.
- Commit with Git.
- Send the author a pull request.

If you add functionality to this application, create an alternative
implementation, or build an application that is similar, please contact
me and I’ll add a note to the README so that others can find your work.

Credits
--

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

License
--

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
28 changes: 0 additions & 28 deletions README.rdoc

This file was deleted.

2 changes: 2 additions & 0 deletions app/controllers/home_controller.rb
@@ -0,0 +1,2 @@
class HomeController < ApplicationController
end
32 changes: 32 additions & 0 deletions app/controllers/users_controller.rb
@@ -0,0 +1,32 @@
class UsersController < ApplicationController
before_filter :authenticate_user!
before_filter :correct_user?, :except => [:index]

def index
@users = User.all
end

def edit
@user = User.find(params[:id])
end

def update
@user = User.find(params[:id])
if @user.update_attributes(secure_params)
redirect_to @user
else
render :edit
end
end

def show
@user = User.find(params[:id])
end

private

def secure_params
params.require(:user).permit(:email)
end

end
1 change: 1 addition & 0 deletions app/views/home/index.html.erb
@@ -0,0 +1 @@
<h3>Home</h3>
6 changes: 6 additions & 0 deletions app/views/users/edit.html.erb
@@ -0,0 +1,6 @@
<%= form_for(@user) do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<br />
<%= f.submit "Update" %>
<% end %>
8 changes: 8 additions & 0 deletions app/views/users/index.html.erb
@@ -0,0 +1,8 @@
<h3>Users</h3>
<ul class="users">
<% @users.each do |user| %>
<li>
<%= link_to user.name, user %> signed up <%= user.created_at.to_date %>
</li>
<% end %>
</ul>
4 changes: 4 additions & 0 deletions app/views/users/show.html.erb
@@ -0,0 +1,4 @@
<h3>User</h3>
<p>User: <%= @user.name %></p>
<p>Email: <%= @user.email if @user.email %></p>
<%= link_to 'Edit account', edit_user_path %>
60 changes: 6 additions & 54 deletions config/routes.rb
@@ -1,56 +1,8 @@
RailsOmniauth::Application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".

# You can have the root of your site routed with "root"
# root 'welcome#index'

# Example of regular route:
# get 'products/:id' => 'catalog#view'

# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products

# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end

# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end

# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end

# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable

# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
root :to => "home#index"
resources :users, :only => [:index, :show, :edit, :update ]
get '/auth/:provider/callback' => 'sessions#create'
get '/signin' => 'sessions#new', :as => :signin
get '/signout' => 'sessions#destroy', :as => :signout
get '/auth/failure' => 'sessions#failure'
end
20 changes: 20 additions & 0 deletions public/humans.txt
@@ -0,0 +1,20 @@
/* the humans responsible & colophon */
/* humanstxt.org */


/* TEAM */
<your title>: <your name>
Site:
Twitter:
Location:

/* THANKS */
Daniel Kehoe (@rails_apps) for the RailsApps project

/* SITE */
Standards: HTML5, CSS3
Components: jQuery
Software: Ruby on Rails

/* GENERATED BY */
RailsApps application template: http://railsapps.github.io/

0 comments on commit d6b4896

Please sign in to comment.