search for: formtaghelp

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

Did you mean: formtaghelper
2006 Apr 05
1
FormTagHelper form names: possible?
Thank you to everybody that has helped me since I signed up. I''m flying along thanks to you. I have a question about the FormTagHelper "start_form_tag": I''ve been trying to figure out how to get Rails to output a "name" attribute for my form so I can hook in a Javascript to focus on a field inside of it on load, but it doesn''t look like I can do it. I''m not sure how to read the...
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", units_to_select(@product) %> Why would this...
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 = form_tag_html_without_locale(html_options) form.safe_contact(hidden_field_tag(''locale'', I18n.locale)...
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?
...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. It seems like both require me to provide names and values and both behave much the same way!? T...
2008 Jun 15
2
Add a class attribut into a form_tag
...but: <% 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 don''t seems work... Thanks :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,...
2006 Feb 03
2
_form rendering question for adding multiple child objects
...handy, actually. It looks like this: > > <% for @comment in @post.comments %> > <%= text_field ''comment[]'', ''author'' %> > <%= text_field ''comment[]'', ''body'' %> > <% end %> > > The FormTagHelper will pick up the square brackets and realize you > want the index of the object in there, producing HTML like this: > > <input type="text" name="comment[42][author]" id="comment_42_author" > value="Duane"> > <input type="text&q...
2007 Jan 28
3
end_form_tag not generating </form>
...%= 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 "end_form_tag" seems to be defined properly. Any suggestions as to what to look for to figure this one out? thanks...jon -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to t...
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 ?
...;'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 <% select_tag and it works AND the first one generates: <select id="tesi_relatore_id" name="tesi[relatore_id]"> and the other <select id="tesi_controrelatore_id" name="tesi_co...