Commit 86284f8d58fe49daaf2ac36eeb54e36bb1153cbb
Committed by
Antonio Terceiro
1 parent
ca285e1e
Exists in
master
and in
28 other branches
added route to invite friends
(ActionItem1640)
Showing
4 changed files
with
9 additions
and
3 deletions
Show diff stats
app/views/profile/members.rhtml
| ... | ... | @@ -17,7 +17,7 @@ |
| 17 | 17 | <% button_bar do %> |
| 18 | 18 | <%= button :back, _('Go back'), { :controller => 'profile' } %> |
| 19 | 19 | <% if profile.community? and user and user.has_permission?(:invite_members, profile) %> |
| 20 | - <%= button :search, _('Invite your friends to join %s') % profile.name, :controller => 'invite', :action => 'selects_address_book' %> | |
| 20 | + <%= button :search, _('Invite your friends to join %s') % profile.name, :controller => 'invite', :action => 'select_address_book' %> | |
| 21 | 21 | <% end %> |
| 22 | 22 | <% end %> |
| 23 | 23 | ... | ... |
config/routes.rb
| ... | ... | @@ -65,6 +65,7 @@ ActionController::Routing::Routes.draw do |map| |
| 65 | 65 | map.catalog 'catalog/:profile', :controller => 'catalog', :action => 'index', :profile => /#{Noosfero.identifier_format}/ |
| 66 | 66 | |
| 67 | 67 | # invite |
| 68 | + map.invite 'profile/:profile/invite/friends', :controller => 'invite', :action => 'select_address_book', :profile => /#{Noosfero.identifier_format}/ | |
| 68 | 69 | map.invite 'profile/:profile/invite/:action', :controller => 'invite', :profile => /#{Noosfero.identifier_format}/ |
| 69 | 70 | |
| 70 | 71 | # feeds per tag | ... | ... |
script/production
| ... | ... | @@ -20,14 +20,14 @@ do_start() { |
| 20 | 20 | clear_cache |
| 21 | 21 | ./script/ferret_server -e $RAILS_ENV start |
| 22 | 22 | ./script/feed-updater start |
| 23 | -# ./script/delayed_job start -n 4 | |
| 23 | + ./script/delayed_job start -n 4 | |
| 24 | 24 | mongrel_rails cluster::start |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | do_stop() { |
| 28 | 28 | mongrel_rails cluster::stop |
| 29 | 29 | ./script/delayed_job stop |
| 30 | -# ./script/feed-updater stop | |
| 30 | + ./script/feed-updater stop | |
| 31 | 31 | ./script/ferret_server -e $RAILS_ENV stop |
| 32 | 32 | } |
| 33 | 33 | ... | ... |
test/integration/routing_test.rb
| ... | ... | @@ -219,4 +219,9 @@ class RoutingTest < ActionController::IntegrationTest |
| 219 | 219 | assert_routing('/browse/communities', :controller => 'browse', :action => 'communities') |
| 220 | 220 | assert_routing('/browse/communities/more_active', :controller => 'browse', :action => 'communities', :filter => 'more_active') |
| 221 | 221 | end |
| 222 | + | |
| 223 | + def test_invite_routing | |
| 224 | + assert_routing('/profile/colivre/invite/friends', :controller => 'invite', :action => 'select_address_book', :profile => 'colivre') | |
| 225 | + end | |
| 226 | + | |
| 222 | 227 | end | ... | ... |