public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Fixed a weird admin bug that only showed up in production mode
Michael Hartl (author)
Wed Apr 23 17:38:24 -0700 2008
commit  78aee0d50991f2d54110fc3168e420e0f8271f1b
tree    aeb8bf280545a55e608bc83034fbd89f1453b023
parent  e589f96aa9ed785cd745934cee1e8a3e9cb33c5a
...
21
22
23
24
 
25
26
27
...
21
22
23
 
24
25
26
27
0
@@ -21,7 +21,7 @@ module ApplicationHelper
0
                               person_connections_path(current_person))
0
       [home, profile, contacts, messages, blog, people, forum, resources]
0
     elsif logged_in? and admin_view?
0
- home = menu_element("Home", admin_home_path)
0
+ home = menu_element("Home", home_path)
0
       people = menu_element("People", admin_people_path)
0
       forums = menu_element(inflect("Forum", Forum.count),
0
                              admin_forums_path)
...
30
31
32
33
 
34
35
36
...
30
31
32
 
33
34
35
36
0
@@ -30,7 +30,7 @@
0
                 <%- if admin_view? -%>
0
                   <%= link_to("Standard view", home_path) %>
0
                 <%- else -%>
0
- <%= link_to("Admin view", admin_home_path) %>
0
+ <%= link_to("Admin view", admin_preferences_path) %>
0
                 <%- end -%>
0
               <%- end -%>
0
             <%- else -%>
...
18
19
20
21
 
22
23
24
...
18
19
20
 
21
22
23
24
0
@@ -18,7 +18,7 @@ ActionController::Routing::Routes.draw do |map|
0
      person.resources :comments
0
   end
0
   map.namespace :admin do |admin|
0
- admin.resources :home, :people, :preferences
0
+ admin.resources :people, :preferences
0
     admin.resources :forums do |forums|
0
       forums.resources :topics do |topic|
0
         topic.resources :posts

Comments

    No one has commented yet.