Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added Users controller

  • Loading branch information...
commit 6c06146dab585e49638a8d656dfd68240aa916c5 1 parent 66d8cfe
Gary Riger authored
3  app/assets/javascripts/users.js.coffee
View
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
3  app/assets/stylesheets/users.css.scss
View
@@ -0,0 +1,3 @@
+// Place all the styles related to the Users controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
4 app/controllers/users_controller.rb
View
@@ -0,0 +1,4 @@
+class UsersController < ApplicationController
+ def new
+ end
+end
2  app/helpers/users_helper.rb
View
@@ -0,0 +1,2 @@
+module UsersHelper
+end
2  app/views/users/new.html.erb
View
@@ -0,0 +1,2 @@
+<h1>Users#new</h1>
+<p>Find me in app/views/users/new.html.erb</p>
4 config/routes.rb
View
@@ -1,5 +1,7 @@
SampleApp::Application.routes.draw do
+ get "users/new"
+
get "static_pages/home"
get "static_pages/help"
get "static_pages/about"
@@ -56,7 +58,7 @@
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
- root :to => 'static_pages#home'
+ # root :to => 'welcome#index'
# See how all your routes lay out with "rake routes"
Please sign in to comment.
Something went wrong with that request. Please try again.