my_forum 0.0.1.beta1 → 0.0.1.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +3 -1
- data/app/assets/javascripts/my_forum/my_forum.js.coffee +46 -0
- data/app/assets/stylesheets/my_forum/application.css.scss +24 -0
- data/app/assets/stylesheets/my_forum/posts.css.scss +13 -0
- data/app/controllers/my_forum/private_messages_controller.rb +3 -0
- data/app/controllers/my_forum/users_controller.rb +12 -1
- data/app/helpers/my_forum/application_helper.rb +4 -0
- data/app/helpers/my_forum/posts_helper.rb +23 -8
- data/app/helpers/my_forum/private_messages_helper.rb +7 -0
- data/app/helpers/my_forum/topics_helper.rb +6 -1
- data/app/models/my_forum/private_message.rb +1 -1
- data/app/models/my_forum/user.rb +4 -4
- data/app/views/my_forum/forums/show.haml +1 -1
- data/app/views/my_forum/private_messages/inbox.haml +3 -3
- data/app/views/my_forum/private_messages/new.haml +7 -2
- data/app/views/my_forum/private_messages/show.haml +3 -3
- data/app/views/my_forum/topics/_post.haml +2 -2
- data/app/views/my_forum/topics/_user_info.haml +1 -1
- data/app/views/my_forum/topics/show.haml +1 -1
- data/config/initializers/will_paginate.rb +24 -0
- data/config/locales/ru.yml +8 -0
- data/config/routes.rb +5 -1
- data/db/migrate/20141118131215_create_my_forum_users.rb +9 -1
- data/db/migrate/20150227210814_create_my_forum_private_messages.rb +2 -0
- data/lib/my_forum/version.rb +1 -1
- data/spec/dummy/log/test.log +208 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 259bf280807e5379a1207cd076de17a6ae69746d
|
4
|
+
data.tar.gz: 4d3486d8623e4192e3ada81996bea4a482d351fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e791b972f66d6546af3214cbe409777845470c0e66a4267a6940b682bb82a16528d1923d6e6148e7470120d128ff0005de981eb7035d55c928e9b29302f3aa3e
|
7
|
+
data.tar.gz: 87b9229b72c71a0a1dcaac72fad05bf48cd434a13485708c39e9482b0fd7a571ab2ec63be4b4891fd20c3445017f2d8532103d3898e12d5a924e294c1ccfbc49
|
data/README.rdoc
CHANGED
@@ -13,4 +13,6 @@ Create config/initializers/my_forum.rb with next content:
|
|
13
13
|
MyForum::Engine.use_custom_user_model = true
|
14
14
|
...
|
15
15
|
|
16
|
-
http://w3facility.org/question/ruby-regex-for-stripping-bbcode/
|
16
|
+
http://w3facility.org/question/ruby-regex-for-stripping-bbcode/
|
17
|
+
|
18
|
+
gem build tag_echidna.gemspec
|
@@ -0,0 +1,46 @@
|
|
1
|
+
ready = ->
|
2
|
+
$('.autocomplete').keyup (elm) ->
|
3
|
+
ajax_url = $(@).data('autocomplete-path')
|
4
|
+
return unless ajax_url
|
5
|
+
|
6
|
+
$.ajax
|
7
|
+
url: ajax_url
|
8
|
+
type: "GET"
|
9
|
+
dataType: "json"
|
10
|
+
data: str: $(elm.target).val()
|
11
|
+
success: (response) ->
|
12
|
+
autocomplete_popup(response, elm.target)
|
13
|
+
|
14
|
+
autocomplete_popup = (autocomplete_list, object) ->
|
15
|
+
popup_id = 'autocomplete_popup'
|
16
|
+
|
17
|
+
# Create or use existing Popup Window
|
18
|
+
if $('#' + popup_id).length > 0
|
19
|
+
popup_container = $('#' + popup_id)
|
20
|
+
else
|
21
|
+
popup_container = $("<div id='#{popup_id}'></div>")
|
22
|
+
$(object).after(popup_container)
|
23
|
+
|
24
|
+
# Show lists
|
25
|
+
html_list = $('<ul/>')
|
26
|
+
$.map autocomplete_list, (item) ->
|
27
|
+
li = $('<li/>')
|
28
|
+
.addClass('ui-menu-item')
|
29
|
+
.attr('role', 'menuitem')
|
30
|
+
.appendTo(html_list)
|
31
|
+
|
32
|
+
a = $('<a/>')
|
33
|
+
.addClass('ui-all')
|
34
|
+
.text(item)
|
35
|
+
.appendTo(li)
|
36
|
+
|
37
|
+
li.click ->
|
38
|
+
$(object).val(item)
|
39
|
+
|
40
|
+
# Destroy popup after select tag
|
41
|
+
popup_container.remove()
|
42
|
+
|
43
|
+
popup_container.html(html_list)
|
44
|
+
|
45
|
+
$(document).ready(ready)
|
46
|
+
$(document).on('page:load', ready)
|
@@ -26,4 +26,28 @@
|
|
26
26
|
padding: 10px;
|
27
27
|
border: 1px solid red;
|
28
28
|
margin-bottom: 14px;
|
29
|
+
}
|
30
|
+
|
31
|
+
#autocomplete_popup {
|
32
|
+
position: absolute;
|
33
|
+
border: 1px solid grey;
|
34
|
+
padding: 0;
|
35
|
+
background-color: #fff;
|
36
|
+
|
37
|
+
ul {
|
38
|
+
list-style-type: none;
|
39
|
+
padding-left: 0;
|
40
|
+
width: 200px;
|
41
|
+
|
42
|
+
li {
|
43
|
+
padding: 4px;
|
44
|
+
width: 100%;
|
45
|
+
cursor: pointer;
|
46
|
+
}
|
47
|
+
|
48
|
+
li:hover {
|
49
|
+
background-color: cornflowerblue;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
29
53
|
}
|
@@ -36,6 +36,19 @@
|
|
36
36
|
border: 1px solid black;
|
37
37
|
}
|
38
38
|
|
39
|
+
.bbqoute {
|
40
|
+
|
41
|
+
.quote_info {
|
42
|
+
font-weight: bold;
|
43
|
+
font-size: 11px;
|
44
|
+
}
|
45
|
+
|
46
|
+
margin-right: 10px;
|
47
|
+
border: 1px solid gainsboro;
|
48
|
+
border-radius: 25px;
|
49
|
+
padding: 10px 20px 10px 20px;
|
50
|
+
}
|
51
|
+
|
39
52
|
.user-title {
|
40
53
|
margin-top: 10px;
|
41
54
|
font-size: 11px;
|
@@ -24,6 +24,7 @@ module MyForum
|
|
24
24
|
|
25
25
|
def new
|
26
26
|
@pm = PrivateMessage.new
|
27
|
+
@reply_pm = PrivateMessage.find(params[:reply_for_id]) if params[:reply_for_id]
|
27
28
|
end
|
28
29
|
|
29
30
|
def create
|
@@ -42,7 +43,9 @@ module MyForum
|
|
42
43
|
end
|
43
44
|
|
44
45
|
@pm.recipient_id = recipient.id
|
46
|
+
@pm.recipient_login = recipient.login
|
45
47
|
@pm.sender_id = current_user_id
|
48
|
+
@pm.sender_login = current_user.login
|
46
49
|
@pm.assign_attributes(pm_params)
|
47
50
|
@pm.save
|
48
51
|
|
@@ -3,7 +3,7 @@ require_dependency "my_forum/application_controller"
|
|
3
3
|
module MyForum
|
4
4
|
class UsersController < ApplicationController
|
5
5
|
|
6
|
-
before_filter :authorize_user, only: [:edit, :update
|
6
|
+
before_filter :authorize_user, only: [:edit, :update]
|
7
7
|
|
8
8
|
def new
|
9
9
|
@user = User.new
|
@@ -66,6 +66,17 @@ module MyForum
|
|
66
66
|
redirect_to root_path unless current_user
|
67
67
|
end
|
68
68
|
|
69
|
+
def autocomplete
|
70
|
+
#TODO mysql safe
|
71
|
+
search_string = params[:str]
|
72
|
+
user_list = MyForum::User.where("login LIKE '%#{search_string}%'").pluck(:login)
|
73
|
+
|
74
|
+
respond_to do |format|
|
75
|
+
format.html { raise 'denied' }
|
76
|
+
format.js { render json: user_list }
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
69
80
|
private
|
70
81
|
|
71
82
|
def user_params
|
@@ -1,8 +1,10 @@
|
|
1
1
|
module MyForum
|
2
2
|
module PostsHelper
|
3
3
|
def format_post_text(post)
|
4
|
-
|
4
|
+
format_bbcode(post.text)
|
5
|
+
end
|
5
6
|
|
7
|
+
def format_bbcode(text)
|
6
8
|
# Images
|
7
9
|
text.gsub!(/\[img\]/i, '<img src="')
|
8
10
|
text.gsub!(/\[\/img\]/i, '" />')
|
@@ -11,19 +13,32 @@ module MyForum
|
|
11
13
|
text.gsub!(/\[b\]/i, '<strong>')
|
12
14
|
text.gsub!(/\[\/b\]/i, '</strong>')
|
13
15
|
|
16
|
+
text.gsub!(/\[i\]/i, '<i>')
|
17
|
+
text.gsub!(/\[\/i\]/i, '</i>')
|
18
|
+
|
19
|
+
# Cut
|
20
|
+
text.gsub!(/\[cut\]/i, '<pre>')
|
21
|
+
text.gsub!(/\[\/cut\]/i, '</pre>')
|
22
|
+
|
23
|
+
# Color
|
24
|
+
text.gsub!(/\[color=(.*?)\](.*?)\[\/color\]/i) { "<span style='color: #{$1}'>#{$2}</span>" }
|
25
|
+
|
26
|
+
# Size
|
27
|
+
text.gsub!(/\[size=(.*?)\](.*?)\[\/size\]/i) { "<span style='font-size: #{$1}'>#{$2}</span>" }
|
28
|
+
|
14
29
|
# Quote
|
15
|
-
|
16
|
-
|
17
|
-
text.gsub!(/\[quote.*]/i, 'quote:')
|
18
|
-
text.gsub!(/\[\/quote\]/i, '')
|
30
|
+
text.gsub!(/\[quote author=(.*?) link=(.*?) date=(.*?)\]/i) { bbquote(author: $1, date: $3) }
|
31
|
+
text.gsub!(/\[\/quote\]/i, '</div>')
|
19
32
|
|
20
33
|
# Link
|
21
|
-
#text.scan(/(?<url>\[url=(.*?)\])(?<url_text>.*?)\[\/url\]/) {|m| puts m.first}
|
22
|
-
#text.match(/(?<url>\[url=(.*?)\])(?<url_text>.*?)\[\/url\]/)
|
23
|
-
#\[url=(.*?)\](.*?)\[\/url\]
|
24
34
|
text.gsub!(/\[url=(.*?)\](.*?)\[\/url\]/i) { "<a href='#{$1}'>#{$2}</a>" }
|
25
35
|
|
26
36
|
text.html_safe
|
27
37
|
end
|
38
|
+
|
39
|
+
def bbquote(author:, date:)
|
40
|
+
date_time = time(DateTime.strptime(date, '%s')) rescue ''
|
41
|
+
"<div class='bbqoute'> <div class='quote_info'>#{author} #{t('my_forum.bbquote.wrote')} #{date_time}:</div> "
|
42
|
+
end
|
28
43
|
end
|
29
44
|
end
|
@@ -8,6 +8,13 @@ module MyForum
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
+
def reply_pm_button(pm)
|
12
|
+
return unless current_user
|
13
|
+
content_tag :div, class: 'reply_pm_button' do
|
14
|
+
link_to t('my_forum.reply_for_pm'), new_private_message_path(reply: true, reply_for_id: pm.id), class: 'btn btn-primary'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
11
18
|
def new_private_messages_count_bage
|
12
19
|
return unless current_user
|
13
20
|
return if (count = new_pm_count).eql?(0)
|
@@ -2,10 +2,15 @@ module MyForum
|
|
2
2
|
module TopicsHelper
|
3
3
|
|
4
4
|
def topic_last_post_info(topic)
|
5
|
-
html = content_tag(:div, topic.last_post_time)
|
5
|
+
html = content_tag(:div, time(topic.last_post_time))
|
6
6
|
html += content_tag(:div, topic.last_post_user_login)
|
7
7
|
html.html_safe
|
8
8
|
end
|
9
9
|
|
10
|
+
def can_quick_answer?(forum)
|
11
|
+
return false unless current_user
|
12
|
+
true
|
13
|
+
end
|
14
|
+
|
10
15
|
end
|
11
16
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module MyForum
|
2
2
|
class PrivateMessage < ActiveRecord::Base
|
3
3
|
scope :unread_count_for, -> (user) { where(recipient_id: user.id, unread: true).count }
|
4
|
-
scope :inbox_for, -> (user) { where(recipient_id: user.id) }
|
4
|
+
scope :inbox_for, -> (user) { where(recipient_id: user.id).order('created_at DESC') }
|
5
5
|
|
6
6
|
attr_accessor :recipient
|
7
7
|
end
|
data/app/models/my_forum/user.rb
CHANGED
@@ -11,6 +11,10 @@ module MyForum
|
|
11
11
|
scope :online, -> { where("updated_at > ?", 10.minutes.ago) }
|
12
12
|
scope :today_visited, -> { where("updated_at > ?", Time.now.beginning_of_day) }
|
13
13
|
|
14
|
+
enum gender: [:female, :male, :alien]
|
15
|
+
serialize :additional_info
|
16
|
+
|
17
|
+
|
14
18
|
validates_uniqueness_of :login, :email
|
15
19
|
|
16
20
|
before_save :encrypt_password
|
@@ -19,10 +23,6 @@ module MyForum
|
|
19
23
|
password == encrypt(submitted_password)
|
20
24
|
end
|
21
25
|
|
22
|
-
def can_quick_answer?(forum)
|
23
|
-
true
|
24
|
-
end
|
25
|
-
|
26
26
|
private
|
27
27
|
|
28
28
|
def encrypt_password
|
@@ -20,7 +20,7 @@
|
|
20
20
|
- @forum_topics.each do |topic|
|
21
21
|
.row.topic-row
|
22
22
|
.col-md-7.col-sm-7= render 'topic_subject', topic: topic, forum: @forum
|
23
|
-
.col-md-1.col-sm-1= topic.posts.first.user.login
|
23
|
+
.col-md-1.col-sm-1= topic.posts.first.user.login rescue '-'
|
24
24
|
.col-md-1.col-sm-1= topic.posts_count
|
25
25
|
.col-md-1.col-sm-1= topic.views.to_i
|
26
26
|
.col-md-2.col-sm-2.info= topic_last_post_info(topic)
|
@@ -13,12 +13,12 @@
|
|
13
13
|
%thead
|
14
14
|
%tr
|
15
15
|
%td=t('.date')
|
16
|
-
%td=t('.subject')
|
17
16
|
%td=t('.from')
|
17
|
+
%td=t('.subject')
|
18
18
|
%tbody
|
19
19
|
- @private_messages.each do |message|
|
20
20
|
%tr
|
21
21
|
- html_class = 'unread' if message.unread?
|
22
22
|
%td=link_to message.created_at, private_message_url(message), class: html_class
|
23
|
-
%td=link_to message.
|
24
|
-
%td=link_to message.
|
23
|
+
%td=link_to message.sender_login, private_message_url(message), class: html_class
|
24
|
+
%td=link_to message.subject, private_message_url(message), class: html_class
|
@@ -9,8 +9,13 @@
|
|
9
9
|
= errors_for @pm
|
10
10
|
|
11
11
|
= form_for @pm, url: private_messages_path, role: 'form' do |form|
|
12
|
-
|
13
|
-
|
12
|
+
- if params[:reply]
|
13
|
+
.form-group= form.text_field :recipient, value: @reply_pm.sender_login, class: 'subject form-control'
|
14
|
+
.form-group= form.text_field :subject, value: @reply_pm.subject ,class: 'subject form-control', placeholder: t('.subject')
|
15
|
+
- else
|
16
|
+
.form-group= form.text_field :recipient, class: 'subject form-control autocomplete', placeholder: t('.recipient'), data: { autocomplete_path: autocomplete_users_path }
|
17
|
+
.form-group= form.text_field :subject, class: 'subject form-control', placeholder: t('.subject')
|
18
|
+
|
14
19
|
.form-group= form.text_area :body, class: 'body form-control', placeholder: t('.body')
|
15
20
|
|
16
21
|
= form.submit class: 'btn btn-primary btn-sm'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module WillPaginate
|
2
|
+
module ActionView
|
3
|
+
def will_paginate(collection = nil, options = {})
|
4
|
+
options[:renderer] ||= BootstrapLinkRenderer
|
5
|
+
super.try :html_safe
|
6
|
+
end
|
7
|
+
|
8
|
+
class BootstrapLinkRenderer < LinkRenderer
|
9
|
+
protected
|
10
|
+
|
11
|
+
def html_container(html)
|
12
|
+
tag :nav, tag(:ul, html, class: 'pagination'), container_attributes
|
13
|
+
end
|
14
|
+
|
15
|
+
def page_number(page)
|
16
|
+
tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page)
|
17
|
+
end
|
18
|
+
|
19
|
+
def previous_or_next_page(page, text, classname)
|
20
|
+
tag :li, link(text, page || '#'), :class => [classname[0..3], classname, ('disabled' unless page)].join(' ')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/config/locales/ru.yml
CHANGED
@@ -2,6 +2,8 @@ ru:
|
|
2
2
|
my_forum:
|
3
3
|
create_new_pm: 'Написать личное сообщение'
|
4
4
|
create_new_topic: 'Создать новую тему'
|
5
|
+
bbquote:
|
6
|
+
wrote: 'написал'
|
5
7
|
|
6
8
|
admin:
|
7
9
|
forums:
|
@@ -110,6 +112,12 @@ ru:
|
|
110
112
|
login: 'Войти'
|
111
113
|
register: 'Зарегестрироваться'
|
112
114
|
|
115
|
+
|
116
|
+
will_paginate:
|
117
|
+
previous_label: 'Назад'
|
118
|
+
next_label: 'Вперед'
|
119
|
+
|
120
|
+
|
113
121
|
activerecord:
|
114
122
|
errors:
|
115
123
|
models:
|
data/config/routes.rb
CHANGED
@@ -8,7 +8,11 @@ MyForum::Engine.routes.draw do
|
|
8
8
|
match 'unread_topics', to: 'forums#unread_topics', via: [:get], as: :unread_topics
|
9
9
|
match 'mark_all_as_read', to: 'forums#mark_all_as_read', via: [:get], as: :mark_all_as_read
|
10
10
|
|
11
|
-
resources :users
|
11
|
+
resources :users do
|
12
|
+
collection do
|
13
|
+
get :autocomplete
|
14
|
+
end
|
15
|
+
end
|
12
16
|
resources :private_messages
|
13
17
|
|
14
18
|
resources :forums, only: [:index, :show] do
|
@@ -4,6 +4,14 @@ class CreateMyForumUsers < ActiveRecord::Migration
|
|
4
4
|
t.string :login
|
5
5
|
t.string :password
|
6
6
|
t.string :salt
|
7
|
+
t.string :real_name
|
8
|
+
t.integer :gender
|
9
|
+
t.date :birthdate
|
10
|
+
t.string :signature
|
11
|
+
t.string :avatar
|
12
|
+
t.string :location
|
13
|
+
t.string :user_ip
|
14
|
+
t.text :additional_info
|
7
15
|
t.string :email
|
8
16
|
t.integer :posts_count
|
9
17
|
t.boolean :is_admin, default: false
|
@@ -22,4 +30,4 @@ class CreateMyForumUsers < ActiveRecord::Migration
|
|
22
30
|
def self.down
|
23
31
|
drop_table :my_forum_users
|
24
32
|
end
|
25
|
-
end
|
33
|
+
end
|
@@ -2,7 +2,9 @@ class CreateMyForumPrivateMessages < ActiveRecord::Migration
|
|
2
2
|
def change
|
3
3
|
create_table :my_forum_private_messages do |t|
|
4
4
|
t.integer :sender_id
|
5
|
+
t.string :sender_login
|
5
6
|
t.integer :recipient_id
|
7
|
+
t.string :recipient_login
|
6
8
|
t.boolean :sender_deleted, :default => false
|
7
9
|
t.boolean :recipient_deleted, :default => false
|
8
10
|
t.boolean :unread, :default => true
|
data/lib/my_forum/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -4924,3 +4924,211 @@ Redirected to http://test.host/my_forum/
|
|
4924
4924
|
Completed 302 Found in 13ms (ActiveRecord: 0.7ms)
|
4925
4925
|
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."email" = ? LIMIT 1[0m [["email", "new_user@google.com"]]
|
4926
4926
|
[1m[35m (0.5ms)[0m rollback transaction
|
4927
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4928
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4929
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4930
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
|
4931
|
+
[1m[36mMyForum::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1[0m
|
4932
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "59eed2d294b0268bbc5d59752fde1df0dd39667ff160f315f6160052516eea1d"], ["email", "demo@example.com"], ["salt", "3210fd5e71b5186cdf7422b113b4e7d68adc4be54ebf97876e6b1b5a9f4c0abe"], ["created_at", "2015-03-25 13:11:14.769189"], ["updated_at", "2015-03-25 13:11:14.769189"]]
|
4933
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4934
|
+
Processing by MyForum::UsersController#signin as HTML
|
4935
|
+
Parameters: {"user"=>{"login"=>"demo", "password"=>"[FILTERED]"}}
|
4936
|
+
[1m[35mMyForum::User Load (0.1ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."login" = ? LIMIT 1 [["login", "demo"]]
|
4937
|
+
Redirected to http://test.host/my_forum/
|
4938
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.1ms)
|
4939
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
4940
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4941
|
+
Processing by MyForum::UsersController#signin as HTML
|
4942
|
+
Parameters: {"user"=>{"login"=>"", "password"=>"[FILTERED]"}}
|
4943
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."login" = ? LIMIT 1[0m [["login", ""]]
|
4944
|
+
Rendered /Users/vint/rails/my_forum/app/views/my_forum/users/signin.haml within layouts/my_forum/application (0.2ms)
|
4945
|
+
Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 0.1ms)
|
4946
|
+
Processing by MyForum::UsersController#signin as HTML
|
4947
|
+
Parameters: {"user"=>{"login"=>"wrong", "password"=>"[FILTERED]"}}
|
4948
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."login" = ? LIMIT 1 [["login", "wrong"]]
|
4949
|
+
Rendered /Users/vint/rails/my_forum/app/views/my_forum/users/signin.haml within layouts/my_forum/application (0.1ms)
|
4950
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
4951
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4952
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4953
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4954
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
|
4955
|
+
[1m[36mMyForum::User Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1[0m
|
4956
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "59eed2d294b0268bbc5d59752fde1df0dd39667ff160f315f6160052516eea1d"], ["email", "demo@example.com"], ["salt", "3210fd5e71b5186cdf7422b113b4e7d68adc4be54ebf97876e6b1b5a9f4c0abe"], ["created_at", "2015-03-25 13:11:14.807991"], ["updated_at", "2015-03-25 13:11:14.807991"]]
|
4957
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4958
|
+
Processing by MyForum::UsersController#forgot_password as HTML
|
4959
|
+
Parameters: {"user"=>{"email"=>"demo@example.com"}}
|
4960
|
+
[1m[35mMyForum::User Load (0.1ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
4961
|
+
[1m[36mMyForum::UserGroup Load (0.2ms)[0m [1mSELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1[0m [["name", "Guests"]]
|
4962
|
+
[1m[35mMyForum::UserGroup Load (0.0ms)[0m SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1 [["name", "Member"]]
|
4963
|
+
[1m[36mMyForum::UserGroupLink Load (0.1ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
4964
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
4965
|
+
[1m[36mMyForum::UserGroupLink Load (0.1ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
4966
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4967
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "my_forum_users" SET "updated_at" = '2015-03-25 13:11:14.839725' WHERE "my_forum_users"."id" = ?[0m [["id", 2]]
|
4968
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4969
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."email" = ? LIMIT 1[0m [["email", "demo@example.com"]]
|
4970
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4971
|
+
[1m[36mMyForum::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."login" = 'demo' AND "my_forum_users"."id" != 2) LIMIT 1[0m
|
4972
|
+
[1m[35mMyForum::User Exists (0.0ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."email" = 'demo@example.com' AND "my_forum_users"."id" != 2) LIMIT 1
|
4973
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "my_forum_users" SET "password" = ?, "salt" = ?, "updated_at" = ? WHERE "my_forum_users"."id" = ?[0m [["password", "a3d80eb9cab2f98bc2b973a1eb155fab0110e550a4583fa533516a0fd16e1886"], ["salt", "dfab96978915f8323aa5fd1154a7b88adc2fae56f6a4c4a9f492fa08c568eb86"], ["updated_at", "2015-03-25 13:11:14.855065"], ["id", 2]]
|
4974
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4975
|
+
Rendered /Users/vint/rails/my_forum/app/views/my_forum/user_mailer/reset_password_email.text.erb within layouts/mailer (1.2ms)
|
4976
|
+
Rendered /Users/vint/rails/my_forum/app/views/my_forum/user_mailer/reset_password_email.haml within layouts/mailer (1.0ms)
|
4977
|
+
|
4978
|
+
MyForum::UserMailer#reset_password_email: processed outbound mail in 170.7ms
|
4979
|
+
|
4980
|
+
Sent mail to demo@example.com (7.5ms)
|
4981
|
+
Date: Wed, 25 Mar 2015 15:11:15 +0200
|
4982
|
+
From: from@example.com
|
4983
|
+
To: demo@example.com
|
4984
|
+
Message-ID: <5512b3f36b23_bfb83feff08601f8653fb@Vitalys-MacBook-Pro.local.mail>
|
4985
|
+
Subject: vaz.od.ua - New password
|
4986
|
+
Mime-Version: 1.0
|
4987
|
+
Content-Type: multipart/alternative;
|
4988
|
+
boundary="--==_mimepart_5512b3f35743_bfb83feff08601f86528a";
|
4989
|
+
charset=UTF-8
|
4990
|
+
Content-Transfer-Encoding: 7bit
|
4991
|
+
|
4992
|
+
|
4993
|
+
----==_mimepart_5512b3f35743_bfb83feff08601f86528a
|
4994
|
+
Content-Type: text/plain;
|
4995
|
+
charset=UTF-8
|
4996
|
+
Content-Transfer-Encoding: 7bit
|
4997
|
+
|
4998
|
+
Your new password is: TXJihBJPbZ
|
4999
|
+
|
5000
|
+
----==_mimepart_5512b3f35743_bfb83feff08601f86528a
|
5001
|
+
Content-Type: text/html;
|
5002
|
+
charset=UTF-8
|
5003
|
+
Content-Transfer-Encoding: 7bit
|
5004
|
+
|
5005
|
+
<html>
|
5006
|
+
<body>
|
5007
|
+
Your new password is: TXJihBJPbZ
|
5008
|
+
|
5009
|
+
</body>
|
5010
|
+
</html>
|
5011
|
+
|
5012
|
+
----==_mimepart_5512b3f35743_bfb83feff08601f86528a--
|
5013
|
+
|
5014
|
+
Redirected to http://test.host/my_forum/
|
5015
|
+
Completed 302 Found in 221ms (ActiveRecord: 1.5ms)
|
5016
|
+
[1m[36mMyForum::User Load (0.1ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5017
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
|
5018
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
5019
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5020
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5021
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
|
5022
|
+
[1m[36mMyForum::User Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1[0m
|
5023
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "f0abae8ead75625e0d6689e95400dec999d1d615a8cb6b177c14ec47ff481bb4"], ["email", "demo@example.com"], ["salt", "03a41672ecd7b4bb0b64a0520762948e16083f3960f9c2f404cbdb60ef7ae67d"], ["created_at", "2015-03-25 13:11:15.037111"], ["updated_at", "2015-03-25 13:11:15.037111"]]
|
5024
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5025
|
+
Processing by MyForum::UsersController#update as HTML
|
5026
|
+
Parameters: {"user"=>{"email"=>"abc@google.com", "password"=>"[FILTERED]"}, "id"=>"2"}
|
5027
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5028
|
+
[1m[36mMyForum::UserGroupLink Load (0.1ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5029
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5030
|
+
[1m[36mMyForum::UserGroupLink Load (0.0ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5031
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5032
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "my_forum_users" SET "updated_at" = '2015-03-25 13:11:15.042760' WHERE "my_forum_users"."id" = ?[0m [["id", 2]]
|
5033
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5034
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5035
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5036
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5037
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5038
|
+
Unpermitted parameter: password
|
5039
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "my_forum_users" SET "email" = 'abc@google.com' WHERE "my_forum_users"."id" = ?[0m [["id", 2]]
|
5040
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5041
|
+
[1m[36mMyForum::UserGroupLink Load (0.0ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5042
|
+
Redirected to http://test.host/my_forum/users/2/edit
|
5043
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
5044
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
|
5045
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5046
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
5047
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5048
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5049
|
+
[1m[36mMyForum::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1[0m
|
5050
|
+
[1m[35mMyForum::User Exists (0.0ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
|
5051
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["login", "demo"], ["password", "f0abae8ead75625e0d6689e95400dec999d1d615a8cb6b177c14ec47ff481bb4"], ["email", "demo@example.com"], ["salt", "03a41672ecd7b4bb0b64a0520762948e16083f3960f9c2f404cbdb60ef7ae67d"], ["created_at", "2015-03-25 13:11:15.052551"], ["updated_at", "2015-03-25 13:11:15.052551"]]
|
5052
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5053
|
+
Processing by MyForum::UsersController#update as HTML
|
5054
|
+
Parameters: {"user"=>{"email"=>"abc@google.com", "password"=>"[FILTERED]"}, "id"=>"2"}
|
5055
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5056
|
+
[1m[35mMyForum::UserGroupLink Load (0.1ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5057
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5058
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5060
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "my_forum_users" SET "updated_at" = '2015-03-25 13:11:15.057923' WHERE "my_forum_users"."id" = ? [["id", 2]]
|
5061
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5062
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5063
|
+
[1m[36mMyForum::UserGroupLink Load (0.0ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5064
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5065
|
+
[1m[36mMyForum::UserGroupLink Load (0.1ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5066
|
+
Unpermitted parameter: password
|
5067
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "my_forum_users" SET "email" = 'abc@google.com' WHERE "my_forum_users"."id" = ? [["id", 2]]
|
5068
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5069
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5070
|
+
Redirected to http://test.host/my_forum/users/2/edit
|
5071
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
5072
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5073
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
5074
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5075
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5076
|
+
[1m[36mMyForum::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1[0m
|
5077
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
|
5078
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["login", "demo"], ["password", "f0abae8ead75625e0d6689e95400dec999d1d615a8cb6b177c14ec47ff481bb4"], ["email", "demo@example.com"], ["salt", "03a41672ecd7b4bb0b64a0520762948e16083f3960f9c2f404cbdb60ef7ae67d"], ["created_at", "2015-03-25 13:11:15.067971"], ["updated_at", "2015-03-25 13:11:15.067971"]]
|
5079
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5080
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5081
|
+
Processing by MyForum::UsersController#update as HTML
|
5082
|
+
Parameters: {"user"=>{"email"=>"abc@google.com", "password"=>"[FILTERED]", "new_password"=>"[FILTERED]"}, "id"=>"2"}
|
5083
|
+
[1m[35mMyForum::User Load (0.1ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5084
|
+
[1m[36mMyForum::UserGroupLink Load (0.1ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5085
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5086
|
+
[1m[36mMyForum::UserGroupLink Load (0.1ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5087
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5088
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "my_forum_users" SET "updated_at" = '2015-03-25 13:11:15.075810' WHERE "my_forum_users"."id" = ?[0m [["id", 2]]
|
5089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5090
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5091
|
+
[1m[35mMyForum::UserGroupLink Load (0.1ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5092
|
+
Unpermitted parameter: new_password
|
5093
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5094
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5095
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5096
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5097
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5098
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."login" = 'demo' AND "my_forum_users"."id" != 2) LIMIT 1
|
5099
|
+
[1m[36mMyForum::User Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."email" = 'demo@example.com' AND "my_forum_users"."id" != 2) LIMIT 1[0m
|
5100
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "my_forum_users" SET "password" = ?, "salt" = ?, "updated_at" = ? WHERE "my_forum_users"."id" = ? [["password", "2dff05801bb836396cb4645dd7a25d06fa16560a189bff9a945aff9b0cc9987f"], ["salt", "8f0d8702f17e9bcbee5c0e7649f1aebcff4d93f95a7ef5e1bd837fcecac97894"], ["updated_at", "2015-03-25 13:11:15.081280"], ["id", 2]]
|
5101
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5102
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
|
5103
|
+
[1m[36mMyForum::UserGroupLink Load (0.0ms)[0m [1mSELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)[0m
|
5104
|
+
Unpermitted parameter: password
|
5105
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "my_forum_users" SET "email" = 'abc@google.com' WHERE "my_forum_users"."id" = ? [["id", 2]]
|
5106
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1[0m [["id", 2]]
|
5107
|
+
[1m[35mMyForum::UserGroupLink Load (0.0ms)[0m SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
|
5108
|
+
Redirected to http://test.host/my_forum/users/2/edit
|
5109
|
+
Completed 302 Found in 13ms (ActiveRecord: 1.2ms)
|
5110
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5111
|
+
[1m[35mMyForum::User Load (0.0ms)[0m SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
|
5112
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
5113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5114
|
+
Processing by MyForum::UsersController#create as HTML
|
5115
|
+
Parameters: {"user"=>{"email"=>"new_user@google.com", "password"=>"[FILTERED]", "login"=>"new_user"}}
|
5116
|
+
[1m[36mMyForum::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'new_user' LIMIT 1[0m
|
5117
|
+
[1m[35mMyForum::User Exists (0.0ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'new_user@google.com' LIMIT 1
|
5118
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5119
|
+
[1m[35mMyForum::User Exists (0.0ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'new_user' LIMIT 1
|
5120
|
+
[1m[36mMyForum::User Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'new_user@google.com' LIMIT 1[0m
|
5121
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "my_forum_users" ("login", "email", "password", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "new_user"], ["email", "new_user@google.com"], ["password", "f7e8d12ce6cb1252fb028bebd6463e10d4daba18429aa6825890167cd32d65aa"], ["salt", "db7db9805a2248285317476cb3204aef7f2c98b75c9e460df9fb3b15bb7792b5"], ["created_at", "2015-03-25 13:11:15.097563"], ["updated_at", "2015-03-25 13:11:15.097563"]]
|
5122
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "my_forum_user_group_links" ("user_group_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_group_id", 2], ["user_id", 2], ["created_at", "2015-03-25 13:11:15.098754"], ["updated_at", "2015-03-25 13:11:15.098754"]]
|
5123
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5124
|
+
Redirected to http://test.host/my_forum/
|
5125
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.7ms)
|
5126
|
+
[1m[36mMyForum::User Load (0.0ms)[0m [1mSELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."email" = ? LIMIT 1[0m [["email", "new_user@google.com"]]
|
5127
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5128
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5129
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5130
|
+
[1m[36mMyForum::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" IS NULL LIMIT 1[0m
|
5131
|
+
[1m[35mMyForum::User Exists (0.1ms)[0m SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" IS NULL LIMIT 1
|
5132
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "my_forum_users" ("password", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["password", "925006b8a1af39a370200566925a3a2f9d25bd067fa6039f24a3cfab6cc377dc"], ["salt", "786cf2a94204b8f3b9c0218d1427e9937ebb402bb35f07618905dcbca903e84d"], ["created_at", "2015-03-25 13:11:15.106136"], ["updated_at", "2015-03-25 13:11:15.106136"]]
|
5133
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5134
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_forum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitaly Omelchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- app/assets/javascripts/my_forum/admin/users.js
|
126
126
|
- app/assets/javascripts/my_forum/application.js
|
127
127
|
- app/assets/javascripts/my_forum/forums.js.coffee
|
128
|
+
- app/assets/javascripts/my_forum/my_forum.js.coffee
|
128
129
|
- app/assets/javascripts/my_forum/posts.js.coffee
|
129
130
|
- app/assets/javascripts/my_forum/topics.js.coffee
|
130
131
|
- app/assets/javascripts/my_forum/users.js.coffee
|
@@ -212,6 +213,7 @@ files:
|
|
212
213
|
- app/views/my_forum/users/signin.haml
|
213
214
|
- app/views/my_forum/users/signout.haml
|
214
215
|
- app/views/my_forum/welcome/index.haml
|
216
|
+
- config/initializers/will_paginate.rb
|
215
217
|
- config/locales/en.yml
|
216
218
|
- config/locales/ru.yml
|
217
219
|
- config/routes.rb
|