Commit 42c95162d35f27716d41379d4a2adbd899e50a35
Committed by
Daniela Feitosa
1 parent
2f91c5c8
Exists in
master
and in
28 other branches
Controller and fixes
* Feature:
- Adding session to plugin context
* Fixes:
- Fixing routes due to dubious route
- Including helper due to method float_to_currency
(ActionItem1996)
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
config/routes.rb
| ... | ... | @@ -79,7 +79,7 @@ ActionController::Routing::Routes.draw do |map| |
| 79 | 79 | map.profile_search 'profile/:profile/search', :controller => 'profile_search', :action => 'index', :profile => /#{Noosfero.identifier_format}/ |
| 80 | 80 | |
| 81 | 81 | # public profile information |
| 82 | - map.profile 'profile/:profile/:action/:id', :controller => 'profile', :action => 'index', :id => /.*/, :profile => /#{Noosfero.identifier_format}/ | |
| 82 | + map.profile 'profile/:profile/:action/:id', :controller => 'profile', :action => 'index', :id => /[^\/]*/, :profile => /#{Noosfero.identifier_format}/ | |
| 83 | 83 | |
| 84 | 84 | # contact |
| 85 | 85 | map.contact 'contact/:profile/:action/:id', :controller => 'contact', :action => 'index', :id => /.*/, :profile => /#{Noosfero.identifier_format}/ | ... | ... |
lib/noosfero/plugin.rb