Displaying 16 results from an estimated 16 matches for "field_value".
2015 Jun 20
1
Xapian with Json
...problem that I have is that: In the same name/value pair sometimes I have different data types (date, text, number), so I don?t know how to search in it.
Maybe that's a ridiculous question, but I?m a newbie.
For example:
{
?id?: 10,
?dinamic_fields?:
[
{
?field_name?:?Name"
?field_value?:?Carlos Antonio"
},
{
?field_name?:?Birthday"
?field_value?:?1975-04-23T18:25:43.511Z"
},
{
?field_name?:?Age"
?field_value?:40
},
]
}
Sometimes I need to search in ?field_value" by text, sometimes by date interval, sometimes by specific date, some...
2010 Oct 14
1
Cucumber Selenium web step to verify value of input field
...ot;#travel_card_number_gate" field should contain "5"
From web_steps.rb
Then /^the "([^\"]*)" field(?: within "([^\"]*)")? should contain
"([^\"]*)"$/ do |field, selector, value|
with_scope(selector) do
field = find_field(field)
field_value = (field.tag_name == ''textarea'') ? field.text : field.value
if field_value.respond_to? :should
field_value.should =~ /#{value}/
else
assert_match(/#{value}/, field_value)
end
end
end
--
You received this message because you are subscribed to the Google...
2015 Mar 08
2
Xapian with Couchdb
Hi,
I?m looking for how to integrate couchdb with xapian.
Couchdb has a elasticsearch plugin, but i didn?t find anything about xapian.
How is the best way to do it ?
There some tips / tricks about xapian and couchdb ?
Best Regards !
Carlos
Brazil.
2006 Apr 11
1
Mixins?
...Now I reckoned that the Ruby way was to create a module
and mix it in with include. However, I can''t get it to work <frustration>
In the first instance I put it straight into the models directory:
module FieldHelper
def validate_field
if template_field.mandatory? && (!field_value || field_value.length==0)
errors.add(template_field.name, _(''cant.be.blank''))
end
end
end
Now in the model I have this :
require "field_helper"
class SchemeAccountField < ActiveRecord::Base
include FieldHelper
protected
def validate
validate_...
2006 Apr 22
1
How to save data with dynamic forms?
Hello,
Imagine I have a form designer, which allow me to design a web form (at
run-time).
I don''t have any idea how to save the data in db (table ddl?), so I can
easily list or search the data.
I though of writing the hash directly from the form to db, but I think there
must be better solution(s)?
Any idea, articles or design pattern on the subject?
Thank you all in advance,
Dunnil
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
...query_obj, options )
end
def explain (query, doc)
query_obj = process_query(query)
self.searcher.explain( query_obj, doc )
end
# Segmentation Fault when index_searcher.highlight
def highlight (query, doc_id, options = {})
query_obj = process_query(query)
doc = self.searcher[doc_id]
field_value = doc[options[:field] ]
field_index = Ferret::I.new(:analyzer => SearchIndex::STEMMING_ANALYZER)
field_index << {:keywords => field_value}
fvh = field_index.highlight(query, 0, options.merge({ :field => :keywords }) )
return fvh
rescue Exception => e
puts "** Ind...
2010 Jul 02
2
Update multiple fields with onclick
...ll To:" and if we click it, it
copies all the Ship To: fields across such as phone, email, etc.
I''ve been looking at link_to_function, is that the right path?
I''ve done observe_fields before but that went to a controller action
whereas here we could get by just copying params[field_values].
Thanks,
David
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-ta...
2006 Jul 21
1
Partial, Table Layout, Multiple Controllers/Models... DRY?
Hi,
I am almost embarrased to ask this and I am sure it has been answered
previously but the search feature is down on ruby-forum so I am not
finding the answer.
I have several controllers (leads, orders, activities, etc...). I have
a ton of repeated html in each of the views for these controllers. For
example, my list view has the same table/tr/td and for..in type of code
and it just
2006 Oct 31
5
mongrel parser for server response
...rsion ;
Http_status_code = (digit){3} >mark %http_status_code ;
Http_status_text = any* >mark %http_status_text ;
Request_Line = (HTTP_Version " " Http_status_code " " Http_status_text CRLF) ;
field_name = (token -- ":")+ >start_field %write_field;
field_value = any* >start_value %write_value;
message_header = field_name ":" " "* field_value :> CRLF;
Request = Request_Line (message_header)* ( CRLF @done);
Chris
2006 Apr 08
7
text_field and arrays
Hi,
I''m trying to do a bulk update on an array with the helper text_field.
I''m trying to create an inputfield for every object in the array, but
I''m not getting it right...
example:
class ClassA
@arrayB[]
end
HTML (code with error):
<% 0.upto(9) do |index| %>
<%= text_field ''ClassA'', ''arrayB[index]'' %>
non
2006 Oct 11
7
Mongrel HTTP Header Problem
Hi,
I''ve recently been trying to setup Mongrel behind Pound so that I can
do mutual SSL authentication. I''ve had a few problems with Pound
(documented at [1]), but now have it working correctly.
However, I think there is a problem with Mongrel and how it deals with
the headers Pound adds to the HTTP header block. One of the extra
headers Pound adds is
2012 Sep 11
1
Patch for Metadata::Padding
Bastiaan Timmer wrote:
...
> In a
> previous message I mentioned writing some more convenience functions, but on
> closer inspection they would either be inefficient or very difficult
> to implement.
Could you briefly list these, in case somebody
else wants to have a go.
Many thanks,
Martin
--
Martin J Leese
E-mail: martin.leese stanfordalumni.org
Web:
2007 Aug 14
2
Finding a models asscoations
Hi,
I cant seem to find the answer to this anywhere so any help/advice is
appreciated.
Each project has one risk and a risk has a number of has/one belongs to
assocations. So what i want to do is in my code loop through all the
associations for a risk and display some field information from each as
they are pretty similar. So somehting like
<% for model_association in project.risks %>
2007 Mar 07
10
Long URLs - New to Mongrel
My rails web app (rails 1.2.1) uploads an image from a Java applet by
encoding it into the URL. This works fine when I''m using Webrick. I''m
trying out Mongrel today, and I''m getting an error in Safari that
says ?lost network connection? (NSURLErrorDomain:-1005). I get
something similar in Firefox. Is there a way to make Mongrel accept a
really long URL like
2009 Feb 16
24
como consultar en oracle
holaa todos ante todo un cordial saludo alguien que me pueda ayudar.
se plantea lo siguiente necesito mostrar 2 campos de una tabla los
cuales son mtin_mtin,mtin_descri de una tabla llamada re_tmtinv de esos
dos campos se necesita obtener el codigo y la descripcion,y luego ser
mostrado para despues ser agregados a un formulario.
el problema que tengo es que ya tengo la vista pero esta en blanco
2006 Dec 07
17
compress and max upload size?
I am using mongrel_cluster with mod_proxy_balancer and would like to
enable compression (assuming it improves throughtput) and limit file
size upload. I configured mod_deflate and LimitRequestSize in Apache,
but in my trials looks like the proxied calls bypass those directives
(the conf goes below).
Is there a way to get this?
-- fxn
# Adapt this .example locally, as usual.
#
# To be