Displaying 9 results from an estimated 9 matches for "form_fields".
Did you mean:
form_field
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
Signed-off-by: Simon COURTOIS <scourtois at linagora.com>
---
src/app/controllers/usages_controller.rb | 13 +++++++
src/app/models/usage.rb | 2 +-
src/app/services/usage_service.rb | 23 ++++++++++++
src/app/views/network/_form.rhtml | 56 +++++++++++++++++++++++++++++-
src/config/routes.rb | 1 +
2009 Feb 06
2
Using partials with form_for
hi all
i was wondering whether it is possible to use partials along with form_for
and form_field. following code is not working. is there some error or this
case is impossible..??
*#new.html.erb*
<h1>Enter Details for new Partner:</h1>
<% form_for(@partner) do |f| %>
<%= render :partial => ''form'', :locals => {:partner => f} %>
<p>
2006 Apr 25
2
Noob Question: REgarding Forms ( Take 2 )
I''m hoping there''s an easy way to do this. I''m trying to read options
from a database, and insert them into form tags. So for example,
In the Database Table: options
size: 300
type: text_field
maxsize: 300
and I want to create a text_field form tag, with all the appropriate
options, is there an easy way to do this, other than having the code
output the HTML
2011 Mar 10
10
JS data to rails view helper
I have a view helper like ryan bates complex forms task helper, rails
2.2.2. Anyway is there a way to send the value selected in a select menu to
the helper? I am trying to do stuff without going back to the server.
<%= select_tag :discout_code, options_for_select(@discount_codes)%><%=
add_exclusion_date_link(''Add Existing'', JS ) %>
--
You received this
2007 Jul 30
0
Setting AR attribute from date_select values?
I have a date select:
<%= form_fields.date_select :birthday_on, :order => [:month, :day,
:year], :start_year => 1900 %>
In my controller I want to set the individual attribute. How do I do
this?
user.birthday_on = params[:user][:birthday_on]
How do I convert this to a date so it set properly?
Thanks for your time!
--
Post...
2008 Jan 18
2
autocomplete for
I have this code in my view:
<%= text_field_with_auto_complete :client, :name %>
when I submit new, y get:
"client"=>{"name"=>"MSO"}
I want to get:
"repair_ticket"=>{"client_id"=>"??"}
My models are
class Client < ActiveRecord::Base
has_many :repair_tickets
end
class RepairTicket <
2008 Jan 23
1
Adv. Rails Recipes - Problem w/ DRY forms
Hello.
I''m following the example in the Advanced Rails Recipes book for Keeping
Forms DRY and Flexible - #22.
I think the last little hurdle that I have is applying my CSS style to
the field labels.
This is in the partial for displaying the field
<p>
<span class="field_label">
<%= label %>
</span>
<span class="form_field">
2010 Aug 25
2
[PATCH] Virtio support
From: Simon Courtois <scourtois at linagora.com>
Signed-off-by: Simon Courtois <scourtois at linagora.com>
---
src/app/controllers/vm_controller.rb | 19 ++++++++++++++++-
src/app/views/vm/_form.rhtml | 25 ++++++++++++++++++++---
src/db/migrate/044_add_virtio_to_vm_and_nic.rb | 11 ++++++++++
src/public/stylesheets/components.css | 5
2005 Aug 09
7
trunk restructuring, new util.js
Hi all,
The latetest trunk revision 1983 features are more streamlined
directory layout and a new util.js file, that acts as a collector for
stuff that doesn''t fit in elsewhere.
To get a grip at the new Builder functionality look at the test in
test/unit/builder_test.html (works only with Firefox).
Note the "klass" instead of "class", this circumvents a