community_engine 2.3.1 → 2.3.2

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.
Files changed (55) hide show
  1. checksums.yaml +6 -14
  2. data/.travis.yml +2 -2
  3. data/CHANGELOG +1 -0
  4. data/Gemfile +2 -0
  5. data/README.markdown +101 -57
  6. data/about.yml +1 -1
  7. data/app/controllers/authorizations_controller.rb +2 -1
  8. data/app/controllers/base_controller.rb +31 -43
  9. data/app/controllers/comments_controller.rb +11 -5
  10. data/app/controllers/messages_controller.rb +1 -1
  11. data/app/controllers/password_resets_controller.rb +4 -4
  12. data/app/controllers/sessions_controller.rb +3 -4
  13. data/app/helpers/base_helper.rb +47 -43
  14. data/app/models/album.rb +3 -3
  15. data/app/models/authorization.rb +14 -14
  16. data/app/models/clipping.rb +13 -13
  17. data/app/models/clipping_image.rb +4 -4
  18. data/app/models/comment.rb +18 -10
  19. data/app/models/event.rb +12 -12
  20. data/app/models/homepage_feature.rb +4 -4
  21. data/app/models/message.rb +2 -2
  22. data/app/models/metro_area.rb +1 -1
  23. data/app/models/photo.rb +4 -4
  24. data/app/models/poll.rb +1 -1
  25. data/app/models/post.rb +48 -48
  26. data/app/models/sb_post.rb +1 -1
  27. data/app/models/topic.rb +2 -2
  28. data/app/models/user.rb +3 -2
  29. data/app/views/admin/comments.html.haml +11 -8
  30. data/app/views/admin/users.html.haml +6 -4
  31. data/app/views/comments/_comment.html.haml +3 -0
  32. data/app/views/comments/approve.js.haml +1 -0
  33. data/app/views/layouts/application.html.haml +16 -16
  34. data/app/views/messages/_sent.html.haml +2 -2
  35. data/app/views/users/_search_options.html.haml +2 -2
  36. data/app/views/users/new.html.haml +4 -4
  37. data/community_engine.gemspec +4 -3
  38. data/config/locales/en.yml +10 -4
  39. data/config/routes.rb +35 -34
  40. data/db/migrate/090_add_comment_role.rb +15 -0
  41. data/lib/community_engine/authenticated_system.rb +11 -11
  42. data/lib/community_engine/engines_extensions.rb +14 -2
  43. data/lib/community_engine/version.rb +1 -1
  44. data/lib/tasks/community_engine_tasks.rake +3 -72
  45. data/test/functional/authorizations_controller_test.rb +60 -0
  46. data/test/functional/comments_controller_test.rb +44 -67
  47. data/test/functional/password_reset_controller_test.rb +14 -6
  48. data/test/functional/sessions_controller_test.rb +3 -3
  49. data/test/functional/topics_controller_test.rb +2 -2
  50. data/test/test_helper.rb +1 -8
  51. data/test/testapp/config/application.rb +4 -0
  52. data/test/testapp/db/schema.rb +4 -3
  53. data/test/unit/comment_test.rb +85 -28
  54. metadata +53 -49
  55. data/lib/community_engine/rails_asset_extensions.rb +0 -131
@@ -35,7 +35,7 @@ class User < ActiveRecord::Base
35
35
  end
36
36
 
37
37
  acts_as_taggable
38
- acts_as_commentable
38
+ acts_as_moderated_commentable
39
39
  has_enumerated :role
40
40
  tracks_unlinked_activities [:logged_in, :invited_friends, :updated_profile, :joined_the_site]
41
41
 
@@ -115,7 +115,8 @@ class User < ActiveRecord::Base
115
115
  :firstname, :fullname, :gender, :lastname, :login, :metro_area_id,
116
116
  :middlename, :notify_comments, :notify_community_news,
117
117
  :notify_friend_requests, :password, :password_confirmation,
118
- :profile_public, :state_id, :stylesheet, :time_zone, :vendor, :zip, :avatar_attributes, :birthday
118
+ :profile_public, :state_id, :stylesheet, :time_zone, :vendor, :zip, :avatar_attributes, :birthday,
119
+ :activated_at, :activation_code
119
120
 
120
121
  attr_accessor :authorizing_from_omniauth
121
122
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  -box do
5
5
  = form_for @search, :url => admin_comments_path, :html => {:class => "MainForm"} do |f|
6
-
6
+
7
7
  %label= :commentable_type.l
8
8
  = f.text_field :commentable_type_like
9
9
 
@@ -14,7 +14,7 @@
14
14
  = f.text_field :author_email_or_user_email_like
15
15
 
16
16
  %p= f.submit :search.l
17
-
17
+
18
18
 
19
19
 
20
20
 
@@ -32,14 +32,17 @@
32
32
  %thead
33
33
  %tr
34
34
  %th{:width => '30px', :colspan => '2'}
35
- %th=:author.l
35
+ %th=:author.l
36
36
  %th{:width => "250px"}=:body_text.l
37
37
  %th=:on_commentable.l
38
38
 
39
39
  %tbody
40
40
  - @comments.each do |comment|
41
41
  %tr{:id => "comment_#{comment.id}"}
42
- %td=link_to_remote(image_tag('icons/delete.png'), {:url => commentable_comment_path(comment.commentable_type, comment.commentable_id, comment), :method => :delete, 500 => 'alert(\'Sorry, there was a server error\'); return false', :success => visual_effect(:fade, "comment_#{comment.id}"), :confirm => "Are you sure you want to permanently delete this comment"} )
42
+ %td=link_to_remote(image_tag('icons/delete.png'), {:url => commentable_comment_path(comment.commentable_type, comment.commentable_id, comment), :method => :delete, 500 => 'alert(\'Sorry, there was a server error\'); return false', :success => visual_effect(:fade, "comment_#{comment.id}"), :confirm => "Are you sure you want to permanently delete this comment"} )
43
+ %td.approve
44
+ -if comment.pending?
45
+ =link_to_remote(image_tag('icons/accept.png'), {:url => approve_commentable_comment_path(comment.commentable_type, comment.commentable_id, comment, :approve => true), :method => :put, :confirm => "Approve this comment?"} )
43
46
  %td= check_box_tag "delete[]", comment.id
44
47
  %td
45
48
  .left
@@ -48,7 +51,7 @@
48
51
  %br
49
52
  %small= comment.user.email
50
53
  -else
51
- = link_to_unless(comment.author_url.blank?, h(comment.username), h(comment.author_url)){ h(comment.username) }
54
+ = link_to_unless(comment.author_url.blank?, h(comment.username), h(comment.author_url)){ h(comment.username) }
52
55
  %br
53
56
  %small=comment.author_email
54
57
  %br
@@ -61,12 +64,12 @@
61
64
  %tr
62
65
  %td{ :colspan => "4" }
63
66
  -if @comments.any?
64
- %a{:href=>"#", :onclick=>"checkboxes.each(function(e){ e.checked = (e.checked == 0 ? 1 : 0) }); return false;"} Toggle all
65
- %p= submit_tag :delete_selected.l
67
+ %a{:href=>"#", :onclick=>"checkboxes.each(function(e){ e.checked = (e.checked == 0 ? 1 : 0) }); return false;"} Toggle all
68
+ %p= submit_tag :delete_selected.l
66
69
 
67
70
  = paginate @comments
68
71
 
69
72
  -content_for :end_javascript do
70
73
  :javascript
71
74
  var form = $('comments');
72
- checkboxes = form.getInputs('checkbox');
75
+ checkboxes = form.getInputs('checkbox');
@@ -32,7 +32,7 @@
32
32
  - @users.each do |user|
33
33
  %tr{:id => "user_#{user.id}"}
34
34
  %td
35
- = link_to_remote(image_tag('icons/delete.png'), {:url => user_path(user), :method => :delete, :success => visual_effect(:fade, "user_#{user.id}"), :confirm => "Are you sure you want to permanently delete this user"} )
35
+ = link_to_remote(image_tag('icons/delete.png'), {:url => user_path(user), :method => :delete, :success => visual_effect(:fade, "user_#{user.id}"), :confirm => "Are you sure you want to permanently delete this user?"} )
36
36
  %td
37
37
  -if !configatron.akismet_key.nil?
38
38
  = link_to_remote(image_tag('icons/bad-flag.png'), {:url => user_path(user, :spam => true), :method => :delete, 500 => 'alert(\'Sorry, there was a server error\'); return false', :success => visual_effect(:fade, "user_#{user.id}"), :confirm => "Are you sure you want to permanently delete this user and mark it as spam!?"} )
@@ -41,14 +41,16 @@
41
41
  %td
42
42
  -if user.avatar
43
43
  = image_tag user.avatar.photo.url(:thumb), :width => 25, :height => 25
44
- = link_to h(user.login), user_path(user)
44
+ = link_to_if user.active?, h(user.login), user_path(user)
45
45
  %td
46
46
  = h user.email
47
47
  %td
48
48
  = user.active? ? :active.l : :inactive.l
49
49
  %td
50
- = link_to( :assume_id.l , assume_user_path(user), :method => :post )
51
- = " | #{link_to(:activate.l, :controller => "/admin", :action => "activate_user", :id => user.id)}".html_safe unless user.active?
50
+ -if user.active?
51
+ = link_to(:assume_id.l , assume_user_path(user), :method => :post)
52
+ -else
53
+ = link_to(:activate.l, :controller => "/admin", :action => "activate_user", :id => user.id)
52
54
 
53
55
  %tfoot
54
56
  %tr
@@ -1,3 +1,6 @@
1
+ -if comment.pending?
2
+ %em This comment is awaiting approval
3
+
1
4
  -if comment.user
2
5
  .hentry{:id => "comment_#{comment.id}"}
3
6
  .vcard.author
@@ -0,0 +1 @@
1
+ $$('#comment_#{@comment.id} .approve a').invoke('hide');
@@ -12,27 +12,27 @@
12
12
 
13
13
  - if @rss_title && @rss_url
14
14
  = auto_discovery_link_tag(:rss, @rss_url, {:title => @rss_title})
15
-
16
- = render :partial => "shared/scripts_and_styles"
17
-
15
+
16
+ = render :partial => "shared/scripts_and_styles"
17
+
18
18
  %body
19
- -unless configatron.auth_providers.facebook.key.blank?
20
- =render :partial => 'facebook/fb_require'
21
-
19
+ -unless configatron.auth_providers.facebook.key.blank?
20
+ =render :partial => 'facebook/fb_require'
21
+
22
22
  #doc2{:class => "yui-t#{@sidebar_left ? 3 : 6}"}
23
23
  = render :partial => "shared/header"
24
-
24
+
25
25
  #bd
26
26
  = render :partial => "shared/messages"
27
-
27
+
28
28
  = yield
29
-
30
-
29
+
30
+
31
31
  #ft
32
- -if show_footer_content?
32
+ -if show_footer_content?
33
33
  .yui-gc#footer_content
34
34
  = image_tag 'spinner.gif', :plugin => 'community_engine'
35
- =:loading_recent_content.l
35
+ =:loading_recent_content.l
36
36
 
37
37
 
38
38
  #CommunityFooter
@@ -41,7 +41,7 @@
41
41
  %a{:href=>home_url, :title=>"#{configatron.community_name} " + :home.l}= :home.l
42
42
  - if !logged_in?
43
43
  %li
44
- = link_to :log_in.l , login_path
44
+ = link_to :log_in.l , login_path
45
45
  - else
46
46
  %li
47
47
  %a{:href=>logout_url, :title=>:log_out_of_your.l + " #{configatron.community_name} " + :account.l}
@@ -49,8 +49,8 @@
49
49
 
50
50
  - Page.find(:all).each do |page|
51
51
  - if (logged_in? || page.page_public)
52
- %li= link_to page.title, pages_path(page)
53
-
52
+ %li= link_to page.title, pages_path(page)
53
+
54
54
  - if @rss_title && @rss_url
55
55
  %li#rss= link_to :rss.l, @rss_url, {:title => @rss_title}
56
56
 
@@ -58,4 +58,4 @@
58
58
  = :community_tagline.l
59
59
 
60
60
  = render :partial => "shared/end_javascript"
61
- = yield :end_javascript
61
+ = yield :end_javascript
@@ -18,11 +18,11 @@
18
18
  .photo= link_to image_tag( message.recipient.avatar_photo_url(:thumb), "height"=>"50px", "alt"=>"#{message.recipient.login}", "width"=>"50px" ), user_path(message.recipient), :title => :users_profile.l(:user => message.recipient.login)
19
19
 
20
20
  %td
21
- = link_to h(message.subject), user_message_path(@user, message)
21
+ = link_to h(message.subject), user_message_path(message.sender, message)
22
22
  %br
23
23
  = :to.l
24
24
  \:
25
- = link_to h(message.recipient.login), user_path(@user)
25
+ = link_to h(message.recipient.login), user_path(message.recipient)
26
26
  %td.meta{:width => '150px'}
27
27
  = time_ago_in_words_or_date(message.created_at)
28
28
 
@@ -1,5 +1,5 @@
1
-
2
- -box :class => 'alt' do
1
+
2
+ -box :class => 'alt first_alt' do
3
3
  %h3= :metro_areas.l
4
4
  - city_cloud @metro_areas_for_cloud, %w(nube1 nube2 nube3 nube4 nube5) do |city, css_class|
5
5
  = link_to city.name, users_path(:metro_area_id => city.id), :class => css_class
@@ -3,10 +3,10 @@
3
3
  %h3
4
4
  =:why_sign_up.l
5
5
  %ul.list.checks
6
- %li
7
- = :sign_up_reason_1.l
8
- %li
9
- = :sign_up_reason_2.l
6
+ %li
7
+ = :sign_up_reason_1.l
8
+ %li
9
+ = :sign_up_reason_2.l
10
10
 
11
11
  -box :class => 'alt' do
12
12
  %h3=:tips.l
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.summary = "CommunityEngine for Rails 3"
11
11
  s.description = "CommunityEngine is a free, open-source social network platform for Ruby on Rails applications. Drop it into your new or existing application, and you’ll instantly have all the features of a basic community site."
12
12
  s.homepage = "http://www.communityengine.org"
13
+ s.licenses = ["MIT", "see each plugin"]
13
14
 
14
15
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
15
16
  s.authors = ["Bruno Bornsztein"]
@@ -28,8 +29,8 @@ Gem::Specification.new do |s|
28
29
  s.add_dependency(%q<rails>, [">= 3.2.0"])
29
30
  s.add_dependency(%q<rack>, [">= 1.4.1"])
30
31
  s.add_dependency(%q<authlogic>, [">= 0"])
31
- s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
32
- s.add_dependency(%q<configatron>, [">= 0"])
32
+ s.add_dependency(%q<bcrypt>, [">= 0"])
33
+ s.add_dependency(%q<configatron>, ["~> 2.0"])
33
34
  s.add_dependency(%q<hpricot>, [">= 0"])
34
35
  s.add_dependency(%q<htmlentities>, [">= 0"])
35
36
  s.add_dependency(%q<haml>, [">= 0"])
@@ -42,7 +43,7 @@ Gem::Specification.new do |s|
42
43
  s.add_dependency(%q<friendly_id>, ["~> 3.3"])
43
44
  s.add_dependency(%q<paperclip>, ["~> 3.5.1"])
44
45
  s.add_dependency(%q<cocaine>, ["0.5.1"])
45
- s.add_dependency(%q<acts_as_commentable>, ["= 3.0.1"])
46
+ s.add_dependency(%q<acts_as_commentable>, ["~> 4.0.1"])
46
47
  s.add_dependency(%q<recaptcha>, [">= 0"])
47
48
  s.add_dependency(%q<omniauth>, ["~> 1.1.0"])
48
49
  s.add_dependency(%q<prototype-rails>, [">= 0"])
@@ -1117,8 +1117,8 @@ en:
1117
1117
  required: required
1118
1118
  #en: required_we_will_send_a_confirmation_e_mail_to_the_address_you_enter: "(Required: We will send a confirmation e-mail to the address you enter.)"
1119
1119
  required_we_will_send_a_confirmation_e_mail_to_the_address_you_enter: "(Required: We will send a confirmation e-mail to the address you enter.)"
1120
- #en: required_you_must_be_at_least_years_old_to_sign_up: "(Required: you must be at least %{min_age} years old to sign up.)"
1121
- required_you_must_be_at_least_years_old_to_sign_up: "(Required: you must be at least %{min_age} years old to sign up.)"
1120
+ #en: required_you_must_be_at_least_years_old_to_sign_up: "(Required: You must be at least %{min_age} years old to sign up.)"
1121
+ required_you_must_be_at_least_years_old_to_sign_up: "(Required: You must be at least %{min_age} years old to sign up.)"
1122
1122
  #en: required_your_username_must_not_contain_numerals_spaces_or_special_characters: "(Required: Your username must not contain spaces or special characters.)"
1123
1123
  required_your_username_must_not_contain_numerals_spaces_or_special_characters: "(Required: Your username must not contain spaces or special characters.)"
1124
1124
  #en: resend_my_activation_e_mail: Resend my activation e-mail
@@ -1293,8 +1293,8 @@ en:
1293
1293
  tags_are_keywords_you_use_to_organize_your_clippings_separate_multiple_tags_with_commas: Tags are keywords you use to organize your clippings. Separate multiple tags with commas.
1294
1294
  #en: tags_are_keywords_you_use_to_organize_your_photos: Tags are keywords you use to organize your photos. Separate multiple tags with commas.
1295
1295
  tags_are_keywords_you_use_to_organize_your_photos: Tags are keywords you use to organize your photos. Separate multiple tags with commas.
1296
- #en: tags_are_one_word_descriptors_users_assign_to_blog_posts_pictures_and_clippings_on: Tags are one-word descriptors user assign to blog posts, pictures and clippings on
1297
- tags_are_one_word_descriptors_users_assign_to_blog_posts_pictures_and_clippings_on: Tags are one-word descriptors user assign to blog posts, pictures and clippings on
1296
+ #en: tags_are_one_word_descriptors_users_assign_to_blog_posts_pictures_and_clippings_on: Tags are one-word descriptors users assign to blog posts, pictures and clippings on
1297
+ tags_are_one_word_descriptors_users_assign_to_blog_posts_pictures_and_clippings_on: Tags are one-word descriptors users assign to blog posts, pictures and clippings on
1298
1298
  #en: tagged: tagged
1299
1299
  tagged: tagged
1300
1300
  #en: tags_page: tags page
@@ -1660,3 +1660,9 @@ en:
1660
1660
  cancel_and_go_back_to_photo_manager: "Cancel and go back to photo manager"
1661
1661
  #en: back_to_photo_manager: "Back to photo manager"
1662
1662
  back_to_photo_manager: "Back to photo manager"
1663
+ #en: photo_presence_error: "is not present."
1664
+ photo_presence_error: "is not present."
1665
+ #en: photo_content_type_error: "is not a supported image type."
1666
+ photo_content_type_error: "is not a supported image type."
1667
+ #en: photo_size_limit_error: "must be less than %{count}MB."
1668
+ photo_size_limit_error: "must be less than %{count}MB."
@@ -7,14 +7,14 @@ Rails.application.routes.draw do
7
7
  resources :authorizations
8
8
  match '/auth/:provider/callback' => 'authorizations#create', :as => :callback
9
9
  get '/auth/failure' => 'authorizations#failure'
10
-
10
+
11
11
  resources :sb_posts, :as => 'all_sb_posts' do
12
12
  collection do
13
13
  get :search
14
14
  get :monitored
15
15
  end
16
16
  end
17
-
17
+
18
18
  resources :monitorship
19
19
  resources :sb_posts do
20
20
  collection do
@@ -25,7 +25,7 @@ Rails.application.routes.draw do
25
25
 
26
26
  resources :forums do
27
27
  resources :sb_posts
28
-
28
+
29
29
  resources :moderators
30
30
  resources :topics do
31
31
  resources :sb_posts
@@ -37,9 +37,9 @@ Rails.application.routes.draw do
37
37
 
38
38
  get 'sitemap.xml' => 'sitemap#index', :format => 'xml'
39
39
  get 'sitemap' => 'sitemap#index'
40
-
40
+
41
41
  get '/' => 'base#site_index', :as => :home
42
-
42
+
43
43
  scope "/admin" do
44
44
  get 'dashboard' => 'homepage_features#index', :as => :admin_dashboard
45
45
  get 'users' => 'admin#users', :as => :admin_users
@@ -51,33 +51,33 @@ Rails.application.routes.draw do
51
51
  get 'subscribers(.:format)' => "admin#subscribers", :as => :admin_subscribers
52
52
  get 'activate_user' => "admin#activate_user", :as => :admin_activate_user
53
53
  get 'deactivate_user' => 'admin#deactivate_user', :as => :admin_deactivate_user
54
-
54
+
55
55
  resources :pages, :as => :admin_pages do
56
56
  member do
57
57
  get :preview
58
58
  end
59
59
  end
60
60
  end
61
-
61
+
62
62
  get 'pages/:id' => 'pages#show', :as => :pages
63
-
64
-
63
+
64
+
65
65
  get '/login' => 'sessions#new', :as => :login
66
66
  get '/signup' => 'users#new', :as => :signup
67
67
  get '/logout' => 'sessions#destroy', :as => :logout
68
-
68
+
69
69
  get '/signup/:inviter_id/:inviter_code' => 'users#new', :as => :signup_by_id
70
70
  get '/forgot_password' => 'password_resets#new', :as => :forgot_password
71
71
  resources :password_resets
72
72
  get '/forgot_username' => 'users#forgot_username', :as => :forgot_username
73
73
  post '/forgot_username' => 'users#forgot_username'
74
74
  post '/resend_activation' => 'users#resend_activation', :as => :resend_activation
75
-
75
+
76
76
  get '/new_clipping' => 'clippings#new_clipping'
77
- post '/load_images_from_uri' => 'clippings#load_images_from_uri', :format => 'js'
77
+ post '/load_images_from_uri' => 'clippings#load_images_from_uri', :format => 'js'
78
78
  get '/clippings(/page/:page)' => 'clippings#site_index', :as => :site_clippings
79
79
  get '/clippings.rss' => 'clippings#site_index', :as => :rss_site_clippings, :format => 'rss'
80
-
80
+
81
81
  get '/featured(/page/:page)' => 'posts#featured', :as => :featured
82
82
  get '/featured.rss' => 'posts#featured', :as => :featured_rss, :format => 'rss'
83
83
  get '/popular(/page/:page)' => 'posts#popular', :as => :popular
@@ -113,7 +113,7 @@ Rails.application.routes.draw do
113
113
  end
114
114
  get '/tags/:id/:type' => 'tags#show', :as => :show_tag_type
115
115
  get '/search/tags' => 'tags#show', :as => :search_tags
116
-
116
+
117
117
  resources :categories
118
118
  post '/categories/show_tips' => 'categories#show_tips', :as => :categories_show_tips
119
119
 
@@ -133,25 +133,26 @@ Rails.application.routes.draw do
133
133
  resources :favorites
134
134
  end
135
135
  scope "/:commentable_type/:commentable_id" do
136
- resources :comments, :as => :commentable_comments do
136
+ resources :comments, :as => :commentable_comments do
137
137
  member do
138
138
  get :unsubscribe
139
- end
139
+ put :approve
140
+ end
140
141
  end
141
142
  end
142
143
  resources :comments
143
144
  delete '/comments/delete_selected' => 'comments#delete_selected', :as => :delete_selected_comments
144
-
145
+
145
146
  resources :homepage_features
146
147
  resources :metro_areas
147
148
  resources :ads
148
149
 
149
150
  resources :activities
150
-
151
+
151
152
  resources :users do
152
-
153
+
153
154
  get 'page/:page', :action => :index, :on => :collection
154
-
155
+
155
156
  collection do
156
157
  post 'return_admin'
157
158
  delete 'delete_selected'
@@ -160,30 +161,30 @@ Rails.application.routes.draw do
160
161
  get 'dashboard'
161
162
  get 'edit_account'
162
163
  get 'invite'
163
- get 'signup_completed'
164
+ get 'signup_completed'
164
165
  get 'activate'
165
-
166
+
166
167
  put 'toggle_moderator'
167
168
  put 'toggle_featured'
168
169
 
169
170
  put 'change_profile_photo'
170
171
  put 'update_account'
171
- put 'deactivate'
172
-
172
+ put 'deactivate'
173
+
173
174
  get 'welcome_photo'
174
175
  get 'welcome_about'
175
176
  get 'welcome_invite'
176
177
  get 'welcome_complete'
177
-
178
- post 'assume'
179
-
178
+
179
+ post 'assume'
180
+
180
181
  get 'statistics'
181
182
  get 'crop_profile_photo'
182
183
  put 'crop_profile_photo'
183
184
  get 'upload_profile_photo'
184
185
  put 'upload_profile_photo'
185
186
  end
186
-
187
+
187
188
  resources :friendships do
188
189
  collection do
189
190
  get :accepted
@@ -201,13 +202,13 @@ Rails.application.routes.draw do
201
202
  end
202
203
 
203
204
  resources :posts do
204
- get 'page/:page', :action => :index, :on => :collection
205
-
206
- collection do
205
+ get 'page/:page', :action => :index, :on => :collection
206
+
207
+ collection do
207
208
  # get 'manage(/page/:page)', :action => :manage
208
209
  get :manage
209
210
  end
210
-
211
+
211
212
  member do
212
213
  post :send_to_friend
213
214
  put :update_views
@@ -219,7 +220,7 @@ Rails.application.routes.draw do
219
220
  resources :clippings
220
221
 
221
222
  resources :activities do
222
- get 'page/:page', :action => :index, :on => :collection
223
+ get 'page/:page', :action => :index, :on => :collection
223
224
  collection do
224
225
  get :network
225
226
  end
@@ -256,4 +257,4 @@ Rails.application.routes.draw do
256
257
  get '/users/:user_id/posts/category/:category_name' => 'posts#index', :as => :users_posts_in_category
257
258
  post '/users/metro_area_update' => 'users#metro_area_update', :as => :users_metro_area_update
258
259
 
259
- end
260
+ end