similar to: select_tag and multiple => true

Displaying 20 results from an estimated 40000 matches similar to: "select_tag and multiple => true"

2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
All, This is really starting to get me as i can''t figure out why I am getting this error. Here is what is going on. I have a table called items and a item controller. When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to
2005 Dec 20
3
File Column Directory Add another layer
Quick Question. I understand how to change the default path to something other than public but what if I wanted to add another directory into the equation. I want to upload an image into the following structure: /public/image/userid/imageid/test.gif So basically I want to look up the userid in my users table and put all the images for that user in the same directory. So i have a one
2006 Jan 19
2
select vs. select_tag
I have a "Users" object and a "Timesheets" object. Each timesheet entry belongs to a User, which is selected from a drop-down list. The timesheet has a user_id field. (The user needs to have an option to select a different user due to the way our system works.) If i use the "select" object, which is bound to the Timesheet model, using this code: <%= select
1999 Feb 10
1
problems with read.table
Dear R users, I have the following problem: I have a table in ASCII-format, separated with commas. I can read it as long as no field contains a comma itself. If one does, read.table doesn't function even though that field is double-quoted. Ex.: File "test.csv": Name,Strasse,PLZ Jsaac,Gossauerstrassee 29,9100 Roth-Bernasconi,"20, ch. des Fauvettes",1212 adressen <-
2006 Apr 18
2
RE: how to evaluate responseText as an array?
getSelectedGridData()[getSelectedRow()] = eval(response.responseText); I believe that will work. Greg ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Joe Hudson Sent: Tuesday, April 18, 2006 12:56 PM To:
2012 Jun 25
1
Replacing text with a carriage return
I have a comma separated data file with no carriage returns and what I'd like to do is 1. read the data as a block text 2. search for the string that starts each record "record_start", and replace this with a carriage return. Replace will do, or just add a carriage return before it. The string is the same for each record, but it is enclosed in double quote marks in the file.
2006 Feb 24
3
New to Ajax
Hello, I''m very new to ajax and was looking for advice on scriptaculous at their website and they suggested i join your mailing list, I hope that was the right thing to do, I haven''t installed ROR yet but i have downloaded the needed one-click installer which i will setup sometime soon, until such time i would like to work with scriptaculous in its native form in php files, the
2006 May 17
3
Autocomplete GetToken??
Hi, I needing to modify the control.js file and am confused about what the purpose of the getToken function is. I read the docs section below and still don''t understand why it doesn''t just access the form.value directly. Docs say: This method should get the text for which to provide autocompletion by invoking this.getToken(), NOT by directly accessing this.element.value. This is
2005 Apr 16
2
Authorization
Hi, Maybe I ask again for something what is wasn''t able to find anything. Is there simple way how to process authorizations? My imagine is that some action for controllers are allowed only to few users. E. g. Everybody can look category list, but only registred user can edit or add. In best way, when user is signup, rails will remember his rights like: adding_category = false
2010 Mar 22
7
How to reference a select_tag within a form
Hi All, Inside my app\views\expenses\new.html.erb file, I had the code: <% form_for(@expense) do |f| %> [snip] <p> <%= f.label :vendor %><br /> <%= f.text_field :vendor %> <br /> <div id="vendor_droplist> <%= select_tag "test", options_for_select(@current_vendors.collect { |v| v.nickname }), {:multiple
2010 Oct 08
4
function using values separated by a comma
Hello, I have a dataframe (tab separated file) which looks like the example below - two values separated by a comma, and tab separation between each of these. [,1] [,2] [,3] [ ,4] [1,] 0,1 1,3 40,10 0,0 [2,] 20,5 4,2 10,40 10,0 [3,] 0,11 1,2 120,10 0,0 I would like to calculate the percentage of the smallest number separated by the comma by: 1) summing the values e.g. for
2015 Sep 28
2
Parse Instruction
Hi all, in most of the architectures, assembly operands are comma-separated. I would like to parse an assembly code that is space-separated and I am having a bit of problem. In *ParseInstruction* function, I don't know what is the easiest way to figure out how many operands a mnemonic expected to have. In comma-separated assembly code, it just consuming commas (while
2005 Nov 22
11
Building a conditions clause (for find) of multiple optional params?
I want to be able to find items according to various params - category_id, member_id, type_id, rating, etc. What I have now is something like: if(@params[''category_id'']) @items=Item.find(:all, :conditions=>["category_id=?", @params[''category_id'']) elsif(@params[''category_id''] and @params[''member_id''])
2006 Jan 09
7
Large select list, speed issues
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Verdana">I have a piece of code in my page to generate
2006 Apr 15
11
evalScripts in IE
My Ajax.Updater is set for evalScripts and it receives this: <script language="JavaScript">complete();</script> It works in FF but not IE. Is the above code the proper way to return scripts? Thanks!
2005 Apr 27
1
Data() and CSV files
Hello, For reasons I don't understand, data() imports CSV (Comma-Separated Values) as if they were delimited by semicolons instead of commas. (Are semicolon-separated Comma-Separated-Value files common somewhere?) Given that this is the case, if I choose to put comma-delimited CSV files in my data directory, what is the preferred method of loading these into memory?
2006 Apr 19
2
select_tag and :include_blank => true not working
Guys, I''m using select_tag to display a non-model dropdown, which works fine. However, I''ve tried every which way to use the :include_blank => true option, but it simply won''t display a blank value. Using :include_blank => true with select on model fields works fine. Can someone please show me a working example? -- Posted via http://www.ruby-forum.com/.
2006 Jun 29
2
HABTM with multiple select list
Hello, I am very new to ruby and need to create my first HABTM with multiple select list.  I am having problems saving data in the middle(linking) table.  1. titles can have multiple categories  2. categories can have multiple titles Categories, titles and categories_titles tables are created.  ----- title_controller.rb--   def new     @title = Title.new     @categories =
2010 Jul 09
3
multiple value with the same number?
I am working on a system for indexing email, and it would be nice to be able to store multiple values for the same value_no - for instance, if an email has multiple attachments, I might want to attach a value for each attachment, but a value with the same number. One option would be store the three values as one, e.g. comma-separated, but I was just wondering how others have dealt with such a
2006 Mar 21
16
Javascript Code inside an Ajax response
Hi, i wish to run a function that came inside my Ajax response. I read that i have to use the evalScripts to make this, but still i couldn''t make it work. The error said that my function isn''t declared. I look at the Sergio Pereira tutorial about use the var xxx = function() but still doesn''t work. Someone could help me? In the response this is the code: for (var i =