GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
Keep selected item in spots dropdown for campaign edit
kneath (author)
Sun Jun 08 19:55:41 -0700 2008
commit  513bb7e4afb7edf9eebc64e60590ae521b651cac
tree    81a4fcf9934881d68bd5ccd3383d19fa5f507c1c
parent  d42b9474cf7a16e505339e042abe553816a123d2
...
16
17
18
19
 
20
21
22
...
16
17
18
 
19
20
21
22
0
@@ -16,7 +16,7 @@
0
 </dl>
0
 <dl class="form">
0
   <dt><label for="campaign_spot">For Spot</label></dt>
0
- <dd><%= select_control :spot_id, :collection => @site.spots, :text_method => :name, :value_method => :id %></dd>
0
+ <dd><%= select_control :spot_id, :collection => @site.spots, :text_method => :name, :value_method => :id, :selected => control_value(:spot_id).to_i %></dd>
0
 </dl>
0
 <dl class="form">
0
   <dt><label>Duration</label></dt>

Comments

    No one has commented yet.