search for: formtaghelpers

Displaying 20 results from an estimated 47 matches for "formtaghelpers".

Did you mean: formtaghelper
2006 Apr 05
1
FormTagHelper form names: possible?
...on to the action after a question mark or gives me an error. I''ve tried putting name="myformname" into double quotes, single quotes, curly braces, brackets, you name it, but nothing works. I''m beginning to think I should just code it in with HTML and forget using the FormTagHelpers for form declarations entirely if I need any attributes except "action" and "method". Anybody know if I''m right or wrong here? -- Posted via http://www.ruby-forum.com/.
2008 May 30
1
Parameters for FormOptionsHelper select vs. FormTagHelper select_tag
I must be missing something when it comes to the parameter differences between form FormOptionsHelper select and FormTagHelper select_tag. Code that follows, works perfectly - <%= f.select :unit, units_to_select(@product), :size=>"20"%> The following code, does not. The helper function never even seems to be called. <%= select_tag "unit",
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 ?
2010 Aug 14
0
[rails3.0.0.beta4] extend form_tag to always include a hidden field
hi there, I want every form in the site to add a hidden_field, basically I want them to always submit the I18n.locale, I''ve tried to alias form_tag_html method of ActionView::Helpers::FormTagHelper like this: # in #{MY_APP_ROOT}/lib/action_view/helpers/form_tag_helper.rb module ActionView::Helpers::FormTagHelper def form_tag_html_with_locale(html_options) form =
2005 Nov 22
3
Idiom for submit button?
What is the rails idiom for submit buttons on forms? All other field types have helpers, but button_to creates its own form, so should not be used. I''ve looked in "Agile Web Dev. with Rails" but can''t see what I should do instead. Is this "difficult" because it runs counter to AJAX type forms? And, related, is there a way to ensure that hitting return in
2012 Oct 12
3
CheckBox with Value and Drop down menu
I am a newbie in Ruby. I would to ask from all the experts in Ruby on how to create a checkbox with value as well as a dropdown menu. I want it like this site http://www.celiac.com/glutenfreemall/advanced_search.php. Their search form is good and I want to learn every aspect in doing it. Hope you can give me a step-by-step tutorial in doing it. Thanks in advance. -- Posted via
2006 Feb 27
2
submit_tag
How can i use the submit_tag method (from: actionView::FormTagHelper) to create various submit buttons and chose the right action in accord to the button that i pushed? -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
0
Changing scaffold''s text_field to a password_field causes white screen of death in mozilla?
I had posted earlier about ''silent failure of a controller'', what seemed to be an intractable problem where I was getting failure of a particular action in a controller while others worked. What was irritating was that there were no useful messages. Nothing to the browser, nothing in logs, and even the breakpoints wouldn''t hit. Finally by a process of elemination I found
2008 Jun 15
2
Add a class attribut into a form_tag
Hi, do you know how to add into this balise a class attribut: <% form_tag :action => ''search'' do -%> in order to do this in HTML: <form action="/people/search" method="post" class="foo"> I had try to use the official documentation (http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html#M001036) but that
2006 Feb 03
2
_form rendering question for adding multiple child objects
Hi I have been following a thread here.. http://www.ruby-forum.com/topic/new?forum_id=3 but it did raise some new curiosities that I hope someone can help address here :) In particular it is with Duane''s super secret hack that works for multiple child objects > There''s a super-secret and mostly undocumented way of doing this > that''s kind of handy, actually.
2007 Jan 28
3
end_form_tag not generating </form>
I put the following code at the end of my index.rhtml: <%= form_tag :action => ''reverse'' %> <%= end_form_tag %> and I get the following code generated: <form method="post" action="/chapter3/reverse"/> </body> ... no </form> tag I''ve checked in ActionView::Helpers::FormTagHelper and the
2006 Feb 13
2
how to find the helpers code ?
Hello, i have the application set up on my radrails. I was looking at the view generated by scaffold and i see a bunch of names, after looking up internet i found that they are helpers and generate the HTML for us. Now, i wanted to look at the helper code for start_form_tag, so that based on that i could write some of my own helpers in my helper classes... but i could not find the code
2008 Dec 16
5
More than one submit_tag in a single form
Hai everyone , I have a list of users(each user in a row)and an Approve button for each user. I wish to change the status of the user to be approved when I click on the Approve button of a user. When I tried getting all the users in the params hash. I want to get the id of the user according to which "Approve" button I clicked. How can I implement this one? Thanks in advance. -- Posted
2010 Feb 14
2
paperclip is making me crazy
seems pretty simple, my model... has_attached_file :pic_1, :styles => { :thumb => "120x90" }, :url => "/:attachment/:id_:style.:extension", :path => ":rails_root/public/system/:attachment/:id_:style.:extension" my view... <% form_tag(:action => ''create'', :html => { :multipart => true }) do -%> <label
2006 Jul 12
5
start_form_tag n00b question
Hi, I''m wondering if there is any way to specify the id of a form tag with the start_form_tag helper. I''ve tried playing around with ", id=>"marginForm" " and also inclosing both the action variable and id variable in curley brackets. The Rails API doesn''t off much help for a n00b like me. It''s probably really easy but any help you guys
2006 Jan 19
5
TIP: Using field_error_proc to add style attributes to form elements
I just put this up on the wiki, and thought I''d share in case it''s useful to anyone else. This is handy if you don?t want to wrap your input elements inside a div when an error occurs, but instead want to add some sort of CSS style to fields with errors: ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| msg = instance.error_message error_style =
2006 Aug 10
2
check_box form helper questions/issues
I''m using Rails 1.1.x and it looks like the check_box form helper expects me to provide and object and method so it can determine if the checkbox should be checked or not. I''m having a couple of issues with this. note: I''m using UserEngine and adding a HABTM so that: class User < ActiveRecord::Base has_and_belongs_to_many :foos end class foo <
2006 Aug 15
1
Question on start_form_tag and get post method
Hi all, I have a simple question about start_form_tag. It default generates method=post. I was wondering how you could use start_form_tag to generate method=get. Probably a simple question but one I can''t answer with the API doc. Thanks in advance, Onno
2006 Jul 20
4
drop down list
hello friends , can u pls tel me how to add drop down list in railsapplication -- Posted via http://www.ruby-forum.com/.
2006 Jun 24
1
select or select_tag ?
hello PPL, I''ve seen now that the _form.rhtml generated by script/scaffold is populated by <%= text_field ''model'', ''field'' %> without _tag! but only text_field_tag is to be found in the 1.1.2 documentation.. (like in the rest of Module ActionView::Helpers::FormTagHelper there is _tag) I''ve tried to use <%= select instead of