Commit 20ac6df5 authored by Chanelle Lunod's avatar Chanelle Lunod

Initial commit

parent 30fa2ca2
# 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://coffeescript.org/
// 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/
class UsersController < ApplicationController
def index
end
end
module UsersHelper
end
<h1>Users#index</h1>
<p>Find me in app/views/users/index.html.erb</p>
Rails.application.routes.draw do
get 'users/index'
devise_for :admin_users
devise_scope :admin_user do
authenticated :admin_user do
......
......@@ -6,9 +6,3 @@ if AdminUser.count == 0
password_confirmation:'Andrea25'
})
end
\ No newline at end of file
if AdminUser.valid?
admin.save()
# email: 'chanelle.lunod@obf.ateneo.edu',
# password: 'December5',
# password_confirmation:'December5'
\ No newline at end of file
require 'test_helper'
class UsersControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get users_index_url
assert_response :success
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment