File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 21
21
% li= link_to ' Protips' , by_tags_protips_path
22
22
23
23
.inside - main- content .cf
24
- = render partial: ' navigation ' , locals: {network: nil}
24
+ = render partial: ' network_navigation ' , locals: {network: nil}
25
25
% ul .networks - filter .cf
26
26
% li
27
27
% a{href: networks_path, class: networks_sub_nav_class (' ' ) + networks_sub_nav_class (' a_z' )}
Original file line number Diff line number Diff line change 15
15
Hyphenator .run ()
16
16
17
17
.inside-main-content.cf
18
- = render :partial => 'navigation ', :locals => {:network => @network}
18
+ = render :partial => 'network_navigation ', :locals => {:network => @network}
19
19
%aside .protips-sidebar
20
20
%ul .protip-actions
21
21
%li
Original file line number Diff line number Diff line change @@ -5,8 +5,17 @@ def self.create_protip_for(user)
5
5
yield protip = user . protips . build
6
6
protip . save!
7
7
end
8
+
9
+ def self . create_network_for ( name )
10
+ Network . find_or_create_by_name ( name ) do |n |
11
+ n . create_slug!
12
+ end
13
+ end
8
14
end
9
15
16
+ S . create_network_for ( 'Ruby' )
17
+ S . create_network_for ( 'JavaScript' )
18
+
10
19
Plan . find_or_create_by_id ( 1 ) do |s |
11
20
s . amount = 0
12
21
s . interval = 'month'
@@ -152,7 +161,7 @@ def self.create_protip_for(user)
152
161
#Network.rebuild_index
153
162
Opportunity . rebuild_index
154
163
Protip . rebuild_index
155
-
164
+
156
165
#Team.rebuild_index #TODO: Disabled until switched from mongo
157
166
Team . all . each { |team | team . tire . update_index }
158
167
end
You can’t perform that action at this time.
0 commit comments