Revision: 44762
Updated Code
at April 19, 2011 23:17 by pdxmph
Updated Code
get :new do
@clients = Client.all
@software = SiteSoftware.all
@site = Site.new
render 'sites/new'
end
<div class="group">
<%= f.label :client_id %><%= f.error_message_on :client_id %><br /><br />
<%= f.select(:client_id, :collection => @clients, :fields => [:name, :id])%>
<span class="description">Pick the Site Client</span>
</div>
Revision: 44761
Updated Code
at April 18, 2011 10:29 by pdxmph
Updated Code
# Define collections in the controller for use in the form:
get :new do
@clients = Client.all
@software = SiteSoftware.all
@site = Site.new
render 'sites/new'
end
# And in the form, use the collections:
<div class="group">
<%= f.label :client_id %><%= f.error_message_on :client_id %><br /><br />
<%= f.select(:client_id, :collection => @clients, :fields => [:name, :id])%>
<span class="description">Pick the Site Client</span>
</div>
Revision: 44760
Updated Code
at April 18, 2011 10:29 by pdxmph
Updated Code
# Define collections in the controller for use in the form:
get :new do
@clients = Client.all
@software = SiteSoftware.all
@site = Site.new
render 'sites/new'
end
# And in the form, use the collections:
<div class="group">
<%= f.label :client_id %><%= f.error_message_on :client_id %><br /><br />
<%= f.select(:client_id, :collection => @clients, :fields => [:name, :id])%>
<span class="description">Pick the Site Client</span>
</div>
Revision: 44759
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 18, 2011 10:19 by pdxmph
Initial Code
# Define collections in the controller for use in the form:
get :new do
@clients = Client.all
@software = SiteSoftware.all
@site = Site.new
render 'sites/new'
end
# And in the form, use the collections:
<div class="group">
<%= f.label :client_id %><%= f.error_message_on :client_id %><br /><br />
<%= f.select(:client_id, :collection => @clients, :fields => [:name, :id])%>
<span class="description">Pick the Site Client</span>
</div>
Initial URL
Initial Description
Initial Title
Padrino Select from Collection
Initial Tags
Initial Language
Rails