preference stuff
This commit is contained in:
parent
e3bd648182
commit
e13337354d
8 changed files with 31 additions and 10 deletions
2
app/controllers/user_preference_controller.rb
Normal file
2
app/controllers/user_preference_controller.rb
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
class UserPreferenceController < ApplicationController
|
||||||
|
end
|
2
app/helpers/user_preference_helper.rb
Normal file
2
app/helpers/user_preference_helper.rb
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
module UserPreferenceHelper
|
||||||
|
end
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
class Notifier < ActionMailer::Base
|
class Notifier < ActionMailer::Base
|
||||||
def signup_confirm(user, token)
|
def signup_confirm(user, token)
|
||||||
recipients user.email
|
recipients user.email
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Configure ActionMailer
|
# Configure ActionMailer
|
||||||
ActionMailer::Base.smtp_settings = {
|
ActionMailer::Base.smtp_settings = {
|
||||||
:address => "localhost",
|
:address => 'localhost',
|
||||||
:port => 25,
|
:port => 25,
|
||||||
:domain => 'localhost',
|
:domain => 'localhost',
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
class CreateUserPreferences < ActiveRecord::Migration
|
|
||||||
def self.up
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.down
|
|
||||||
end
|
|
||||||
end
|
|
7
test/fixtures/user_preferences.yml
vendored
Normal file
7
test/fixtures/user_preferences.yml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
|
# one:
|
||||||
|
# column: value
|
||||||
|
#
|
||||||
|
# two:
|
||||||
|
# column: value
|
8
test/functional/user_preference_controller_test.rb
Normal file
8
test/functional/user_preference_controller_test.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
require File.dirname(__FILE__) + '/../test_helper'
|
||||||
|
|
||||||
|
class UserPreferenceControllerTest < ActionController::TestCase
|
||||||
|
# Replace this with your real tests.
|
||||||
|
def test_truth
|
||||||
|
assert true
|
||||||
|
end
|
||||||
|
end
|
8
test/unit/user_preference_test.rb
Normal file
8
test/unit/user_preference_test.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
require File.dirname(__FILE__) + '/../test_helper'
|
||||||
|
|
||||||
|
class UserPreferenceTest < ActiveSupport::TestCase
|
||||||
|
# Replace this with your real tests.
|
||||||
|
def test_truth
|
||||||
|
assert true
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue