search for: _tag

Displaying 16 results from an estimated 16 matches for "_tag".

Did you mean: d_tag
2006 Feb 19
3
Is there a ''right'' way to do _tag field validation?
I''m reading the Ruby on Rails book by the pragmatic programmers, and it has a brief section on using the _tag input fields (text_field_tag, etc) to collect form data for fields that don''t represent fields in a model. They do validation manually in the controller, which seems really clunky. Is there any way to normalize the form validation between model input fields and non-model fields? It seems...
2012 Feb 09
17
[PATCH] tools/seabios: override $(PYTHON)
Pass PYTHON=$(PYTHON) to gmake when building seabios. This fixes seabios build error ''python not found'' along with the patches from Kevin O''Connor. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo,
2006 Mar 25
1
Automatically Filling in form field tags
I have a form which is predominantly a customer form (first name, last name, etc), if there is a form error and I render to the form from the controller the customer details are filled in correctly. The question I have is, I have some fields which are _tag fields not related to the customer model, how do I get them populated when I render back to the form on error? Cheers, Dan
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 <% select_tag and it works AND the first one generates: <select id="tesi_relato...
2008 Sep 02
1
seledted option for select_tag
Hi iam using select_tag i want selected_option. i have made select _tag like this <%=select_tag(''name'', options_for_select({ :Relevance =>''Relevant'',:Date=>''Recent''}),:selected=>params[:name].to_s) %> The generated html look like this <select selec...
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
2006 Jul 11
9
problems with observe_field
Hi all, I''m having problems with an observe_field, this is the view: <%= form_tag %> <div id="content"> <p>Customer: <select name="cliente_id" id="cliente_id"> <option value="">Select a customer</option> <%= options_for_select Cliente.find_all.collect {|c| [c.razon_social, c.id]} %> </...
2006 Jan 21
5
How do you deal with non-model property form values
I have a User ActiveRecord model that has email and password properties. I want to build a login for that has a "remember me" option. My view looks like this: <% @page_title = "Login" -%> <%= error_messages_for ''user'' %> <%= form_tag %> <table> <tr> <td align="right" width="1%" nowrap="nowrap"><label class="required" for="user_email">Email</label>:</td> <td><%= text_field("user", "email") %></td&...
2006 Jan 13
5
Form field naming semantics question
Hi, I have a question today regarding how the various form elements in _form.rhtml are named. I understand that for a database table "persons" with a column headed by "name", then in _form.rhtml it will probably be like: <p><label for="person_name">Name><br/> <%= text_field ''person'', ''name''
2006 Apr 24
4
Does Rails need more useful form helpers?
I have been using rails professionally for only a month and a half now, but I am continually running into problems with form helpers and accessing multiple objects on a single page. To whit: 1. While text_field and text_area and such all support the :index option, the select helper does not. 2. When appending the text ''[]'' to a helper''s object name, the id is
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 Jul 31
2
**NewBIE** CSS reference in view pages...
I''m a newbie...I have this CSS file created STYLES.CSS which i want to cll into every page under views...how can i do that...<link> tag doesn''t seem to be working here...any help is greatly appreciated...thanks! -- Posted via http://www.ruby-forum.com/.
2006 May 23
1
Form Field Helpers... Do they need objects?
I''m trying to use the select helper but do not need to pass the values back to an object because this is just used as a param value. Everywhere I''ve looked I see that the form field helpers require an object name. I''ve tried omitting the name but I get an error telling me I have two few paramaters. (2 out of 3) Other than typing out the HTML myself (because the
2006 Jul 19
6
Howto: Check_box with a variable (no model)
Hi, I would like to put a checkbox on a form where the input field is a variable rather than a field in a model. The normal way (with a model) would be: <%= check_box(''client'', ''accept'', {}, "1", "0") %> But since accept is a variable @accept and model client will not be there, how do I make a check box work? Regards, Paul
2005 Dec 15
12
Adding multiple invoice items to an invoice on the same form
Hi Friends , Got a unique requirement .I am designing a invoice printing system .So right now I have the NEW page for adding the invoice details to the table .Now I have the requirement of adding Invoice Items In the same form .I have added multiple text boxes to enter the values of the Items using <%= text_field ''invoiceitems[]'', ''item_price''
2006 Aug 03
14
[WARNING] don''t use ruby-sendfile
Hi Folks, I''ve been getting reports of people with serious stability problems in Mongrel. These problems go away instantly when they remove ruby-sendfile. If your mongrel starts up saying that you have "sendfile installed" and that it is using it then **you are wrong**. Remove the gem and don''t use it. I''ll be investigating why it doesn''t really