Displaying 20 results from an estimated 21 matches for "field_id".
Did you mean:
field_idx
2006 Jul 17
4
Inner SELECT-s in Rails
Is there a proper way of doing inner selects in rails.
Basically, I run in issues where I need the count of a query and end up
using find_by_sql. I was wondering if there was any elegant way of doing
such queries.
Roland
--
Posted via http://www.ruby-forum.com/.
2006 Feb 03
2
JavaScript Prototype Help?
...#39;'count_display'',
:with => "''Current characters = '' + value.length"}) %>
And obviously I also have the form text area called "text_area" and a
div called "count_display".
My helper looks like this:
def observe_field_length(field_id, options = {})
options[:content] = options[:with] || ''value''
callback = update_element_function("#{options[:update]}", options)
javascript = "new Form.Element.Observer(''#{field_id}'', "
javascript << "#{options[:frequency]}, &qu...
2007 Dec 12
2
possible bug in eager loading
...it => 50)
This produces:
User Load IDs For Limited Eager Loading (74.648762) SELECT * FROM
(SELECT DISTINCT ON (users.id) users.id, username AS alias_0 FROM users
LEFT OUTER JOIN user_data ON user_data.user_id = users.id LEFT OUTER
JOIN user_data_fields ON user_data_fields.id = user_data.field_id ) AS
id_list ORDER BY id_list.alias_0 DESC LIMIT 50
User Load Including Associations (0.026093) SELECT users."id" AS
t0_r0, users."username" AS t0_r1, users."password" AS t0_r2, <lots of
more fields>, user_data."id" AS t1_r0, user_data."ent...
2007 Jan 23
7
Ajax
Hi, I need some help. I`m developing a data base administrator using
ruby and ajax, both for the first time and I have a problem:
I have a form where you can add or delete some information about a
person., information related with their studies. There is no problem
when I add, but when I delete, it deletes from the database but when I
try to save it throughs me an error because it tries to find
2013 Jul 16
1
[LLVMdev] llvm field
Is there any API in LLVM that can represent the field in java. such as the
instucion "iget vx, vy, field_id"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130716/81e59a4a/attachment.html>
2006 Jun 27
0
Using passed-in locals in observe_field in a partial
I need to be able to assign a value to the field_id field of observe_field inside a partial. Ideally, it would look something like:
<%= observe_field(local_variable_name1, :url => {:action => ''some_constant'', :id => local_variable_name2}) %>
I''m not having a problem with the assignment to :id of local_var...
2009 Mar 05
0
Insert using Rake Task
...html = new_html.strip # remove any whitespace from the edge of
content
end
namespace :mysqldata_select do
LOCATIONS = {1 => 6, 2 => 5, 3 => 5}
task :sqldata_update => :environment do
include ActionView::Helpers::SanitizeHelper
MysqlData::TableName.all(:conditions => {:field_id => [1,2,3]},
:order => :field_primary).each{ |j|
r = TableName.new
# place
r.field = j.field_primary
r.location_id = LOCATIONS[j.field_id]
# save the item to get an ID
r.save
# find any translations
attributes = {}
%w{tc sc jp kr pt}.each{...
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi,
I''m trying some RJS to update a series of list boxes in which the user
selects a state, and the following list gets updated with a list of
counties, and the same for the next list of areas.
My code works perfectly (albeit a bit slow) on Firefox, but on Internet
Explorer it clears the list box (instead of filling it) and Netscape
shows all the counties cramped together on one
2006 Aug 02
2
Passing Ajax.InPlaceEditor options
I''ve followed the instructions in the Rails Recipe #1 and have the
in_place_editor_field working but now I want to tweak how it looks and
behaves. I''d like to be able to override the default yellow highlight color,
which is done using the highlightcolor param according to the scriptaculous
documentation (unless I''m missing something).
I''m new to Ruby and Rails
2006 Nov 04
2
in_place_editor_field submitOnBlur & okButton=false options?
I have a few in_place_editor_fields working fine. I can access some of
the script.aculo.us options such as :cols, :save_text, :cancel_text, but
how do I access the okButton = false & submitOnBlur options? Basically,
I want no submit button, a cancel button, and the ability to submit when
I tab out of the field.
Is this doable without writing a helper? (avoiding digging that deep so
2007 Dec 27
6
populate data in another fields on selection
Hi,
I would like to know how to populate data in another text fields on
selection from a drop down
For Ex
1) The form contains 4 fields out of which 3 are text fields and the 4th
one is
drop down list.
1) i would like to know how to populate the 3 text fields with data
simultaneously
on selection from the drop down list.
Please Help.
--
Posted via http://www.ruby-forum.com/.
2017 Aug 14
4
RFC: Representing unions in TBAA
It's hard to say.
What you've described sounds close to a neutral type system implemented in
metadata.
In particular, ". It also defines a set of language-neutral formal rules
that LLVM codegen follows to determine whether a given pair of accesses are
allowed to overlap by rules of the input language. "
and "the base type followed by field descriptors"
etc
Despite the
2017 Aug 21
2
RFC: Resolving TBAA issues
...> An access node is either a terminal access node that refers to
> the corresponding access type:
> !5 = !{ !1 }
> !9 = !{ !3 }
>
> or a member node that refers to a structure/class or union field
> descriptor and a subsequent access path node:
> !7 = !{ !type_group, !field_id, !field_offset, !field_size }
> !11 = !{ !5, !9, !7 }
>
> For a field node the first element refers to its type. The
> purpose of other elements is to make the field node unique. Their
> meaning is unspecified. Currently the other members for C and C++
> are the field name, bit...
2006 Mar 25
0
in_place_collection_editor
...onpack/lib/action_view/helpers/java_script_macros_helper.rb (working copy)
@@ -72,6 +72,86 @@
tag.to_content_tag(tag_options.delete(:tag), tag_options) +
in_place_editor(tag_options[:id], in_place_editor_options)
end
+
+ # Makes an HTML element specified by the DOM ID +field_id+ become an in-place
+ # editor of a property using a selection list populated by the .
+ #
+ # A form is automatically created and displayed when the user clicks the element,
+ # something like this:
+ # <form id="myElement-in-place-edit-form" target="s...
2006 Apr 06
6
Flexible data schema in a database?
...ields
-----------------------------
id - primary key
parent_id - tree like structure
name - string for the name of the field
hierarchy_id - id of the hierarchy this field belongs to
repeatable - can a record contain more then one of these fields?
data
-----------------------------
id - primary key
field_id - reference to the field to which this data belongs
hierarchy_id - id of the hierarchy this data belongs to
content - string for the data itself
object_id - the object that this data corresponds to
Now this is very simplistic but could certainly be expanded to support
many more options.
Has anyon...
2017 Aug 21
2
RFC: Resolving TBAA issues
...er a terminal access node that refers to
>> the corresponding access type:
>> !5 = !{ !1 }
>> !9 = !{ !3 }
>>
>> or a member node that refers to a structure/class or union field
>> descriptor and a subsequent access path node:
>> !7 = !{ !type_group, !field_id, !field_offset, !field_size }
>> !11 = !{ !5, !9, !7 }
>>
>> For a field node the first element refers to its type. The
>> purpose of other elements is to make the field node unique. Their
>> meaning is unspecified. Currently the other members for C and C++
>>...
2006 May 02
0
YAML failing to de-serialize
I''m seeing this same problem that Josh was seeing back on March 23rd
(see below)
I''ve got the following YAML snippet stored in a text field:
"--- !ruby/object:FieldValue \nattributes: \n item_id: 60\n title:
Test\n field_id: 15\n created_by_id: 5\n locale: en\n link:
www.cclearn.com\n comment: this is a test\n created_at: 2006-05-02
15:43:14.256792 Z\nnew_record: true\n"
When deserialize this using YAML.load and the FieldValue class is not
loaded I successfully get a YAML::Object.
However is FieldValue is...
2005 Oct 27
2
[PATCH] Enable xenstat to use xenstore & fix bugzilla #311
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
--
Jerone Young
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2017 Aug 18
2
RFC: Resolving TBAA issues
...> An access node is either a terminal access node that refers to
> the corresponding access type:
> !5 = !{ !1 }
> !9 = !{ !3 }
>
> or a member node that refers to a structure/class or union field
> descriptor and a subsequent access path node:
> !7 = !{ !type_group, !field_id, !field_offset, !field_size }
> !11 = !{ !5, !9, !7 }
>
> For a field node the first element refers to its type. The
> purpose of other elements is to make the field node unique. Their
> meaning is unspecified. Currently the other members for C and C++
> are the field name, bit...
2009 Feb 26
8
beginners question
hi group,
I am making a little rails app to experiment with rails. It consists
of one model, item, that represents an item on a todo list.
A todo item has a description, a state (finished or not) and a due
date.
After changing the scaffold screens a bit, I wanted to be able to
have no due date. I tried to do this by making a radio button; if ''no
date'' is selected, the date