Displaying 20 results from an estimated 73 matches for "formhelp".
Did you mean:
forrhelp
2006 Apr 08
2
ActionView::Helpers::FormHelper instance methods should take an object reference rather than an object_name.
Hi
ActionView::Helpers::FormHelper methods (e.g. #text_field,
#check_box...) take object_name as an argument. From this argument
they infer a name that is supposed to contains the reference to the
relevant object.
I can''t see why the FormHelper methods were designed that way.
Compared to simply passing them a reference,...
2006 Jun 18
0
Framework question about FormHelper ...
Hello,
I don''t understand how formhelper works (In a Framework point of view) ...
For example if I use the chek_box formhelper
1/ check_box("puppy", "gooddog", {}, "yes", "no") will call @puppy.gooddog
BUT, how it is possible since the check_box has only a string parameters
not instance object ?...
2005 Dec 19
0
ActionView::Helpers::FormHelper.text_field
Hi,
Is it possible to use the ActionView::Helpers::FormHelper.text_field with an
instance variable instead of a model. e.g.
In the controller:
def meth
@value = ''hi there''
end
In view:
<%= text_field ''value'', nil %>
It doesn''t work with what is above (doesn''t like the nil) and produces very...
2006 Jun 02
3
Advice, why value_before_type_cast in FormHelper?
I am wondering why is in creating text fields with form_helper used
value_before_type_cast instead of attribute value for field value?
I set rails enviroment so date fields are in european format
(dd.mm.yyyy) and would like to have same format in forms, but because of
value_before_type_cast is called, form fields are filled with
''yyyy-mm-dd'' or timestamp integer, etc.
2006 Feb 21
1
formhelper methods don''t work with render collection partials
I''m rendering a partial using a collection:
<%=render(:partial=> ''record'', :collection => @records)%>
Inside the partial, I''m attempting to create a new form for each row,
generating elements like the following example:
<%= text_field "record", "name" %>
However, though my objects are fully populated, these form tags
2010 Feb 20
1
formhelper password_field only takes two arguments
When I look at the docs, password_field seems to take 3 arguments.
So when I ''play around" with things and I attempt to pass three
arguments to password_field ... I get an error saying that it only takes
two parameters ("3 for 2")
I am totally lost.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello,
Is it possible to fill the textarea content when using the text_area
function ?
Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2006 Apr 04
4
Anyone noticed slow rendering performance with formhelpers?
It seems like the form helpers, such as "link_to" and "check_box" really
slows down rendering when you have hundreds of rows.
Has anyone else noticed this?? Is there a way to go around it apart
from typing the raw html?
--
Posted via http://www.ruby-forum.com/.
2012 Sep 08
4
dash symbol
In the example below, what is the dash doing between the class
attribute and array:
(field_helpers -
[:label, :check_box, :radio_button, :fields_for, :hidden_field, :file_field]).each
do |selector|
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Mar 20
4
Displaying an image in a Rails form_for
...v.nickname }),
{:multiple => true} %>
</p>
But Rails gushes the unforgiving response:
undefined method `image'' for #<ActionView::Helpers::FormBuilder:
0x48194e0>
I couldn''t find anything helpful in:
-- http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html
-- http://api.rubyonrails.org/http://api.rubyonrails.org/
-- Google
Any ideas?
Thanks in Advance,
Richard
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5T...
2007 Apr 09
4
How do i switch off error wrapping for a specific field?
...ss ''fieldsWithError'', which is not good practice
in my eyes. Adding a class ''error'' to the field would be much nicer.
My solution to the problem: build your own FormBuilder. Funny enough, i
found no (nice) possibility to switch error wrapping off while using the
FormHelper methods. As error_wrapping is a method in InstanceTag (and
not of FormHelper), it is pretty hard to have a FormBuilder change its
behaviour.
One possibility is to define
def initialize(object_name, object, template, options, proc)
ActionView::Base.field_error_proc = lambda do |html_tag, inst...
2006 Aug 01
6
Newbie: How to use text_field with Java Script
<input type="text" name="date1" id="dateField1"
onchange="magicDate(''dateField1'');" onfocus="if (this.className !=
''error'') this.select()" />
How could I generate above text filed using ruby?
I am not sure how to give the options such as onchange, onfocus, id and
so on?
could some one please help.
--
2006 Jul 05
1
Setting a HTML ID with form_tag / form_remote_tag
Hello,
Is it possible to specify a HTML ID with the form_tag / form_remote_tag
methods of the FormHelper? I specifically need this for javascript and
css but can''t seem to find how to do it in the APIs.
Cheers,
Paul Shannon
Web Applications Developer
Codeweavers Limited
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/piperma...
2006 Jul 05
1
Prototype Based Validation with form_remote_tag
...Ajax.Updater to the onSubmit action of the form. The validation.js also
attempts to bind to the onSubmit of the form.
The logic that is needed is
if( valid.validate() )
{
...Ajax.Updater...
}
where valid is the validation object
How can I add this logic to the onSubmit that is added by the FormHelper
in the rails framework?
Alternatively, is anyone else using this validation library for
client-side validation in conjunction with rails and has a better
method?
Cheers,
Paul Shannon
Web Applications Developer
Codeweavers Limited
Tel: 0870 443 0888
Fax: 0870 443 0889
-------------- n...
2006 Jan 10
0
Changing scaffold''s text_field to a password_field causes white screen of death in mozilla?
...is why the browser blanks out.
Can some one explain to me this behaviour? This happened to me on 3 seperate
machines (work, home and laptop) which I use for development (all running
Debian Sarge).
While on the subject I would much appreciate if some one can clarify for me
the difference between
FormHelper<http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html>and
the
FormTagHelper<http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html>.
Ihave read the docs a few times as well as the Agile book, and may be I am
just to tired, it does not make sense to me...
2005 Dec 27
2
Rewriting FormBuilder
Hi,
I want to extend formbuilder to make it output a lable (I know about
labeled_form_helper made by technoweenie), my own formating, and a
couple of extra tags inside the form attribute. I was easily able to
extend form_remote_to. But when I continue to adjust the way elements
are handled I don''t know how to continue. I can''t find the method
text_field thats should is
2005 Mar 07
2
radio_button helper and "checked" option
Does anyone know how to get the radio_button helper to set the html
"checked" option?
Thanks,
Curt
2006 Jun 12
3
Multiple Form Fields with Same Model?
...rate an id or
count field into the fields so controller can tell the diffrence between
the fields in the params[]. I tried using the phones[] with ''[]'' based
upon the agile book, first edition, pg 356 and the rails docs at
http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html
Any help would be greatly appreciated.
Thanks.
__
Donnie
2006 Jun 26
2
How can I sort options in a select box?
Pretty much a newbie here, looking for help on select boxes in forms....
Is there any way in the view to sort the options of a drop-down select
box?
My current code (within a larger _form.rhtml file) is:
<div class="form-element">
<label for="asset_location_id">Location</label>
<%= select ''asset'', ''location_id'',
2006 Apr 25
3
select boxe
yop,
http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html
ici j''ai vu qu''on pouvait g?n?rer des ?l?ment d''un formulaire gr?ce des
m?thodes. Apres quelque petite recherches j''ai trouv? comment g?n?rer un
select
<%= select(''category'', ''category.id'', Category.find_all.collect...