Displaying 20 results from an estimated 110 matches similar to: "3 doubts on observe_field"
2006 Mar 01
1
observe_field question
I''m sure this is a simple problem, but I''ve been working on it for a
couple days and can''t seem to figure out the correct way to structure my
observe_field call. The HTML and Javascript generated all appear
correct, but the AJAX call is never made. Below is the code I''m using
and any help would be much appreciated.
models_controller.rb
def
2006 Mar 18
10
collection_select''s linked
I created a form with two collection_select, country and state and would
like to bring up to date the state list when to select a new country.
How I can make this in Rails?
Thanks
Eleudson
Brazil
<p><label for="person_country_id">Country</label><br/>
<%= collection_select(:person, :country_id, @countries, :id, :name)
%></p>
<p><label
2006 May 17
0
[LLVMdev] Obfuscation with LLVM
Hi all,
I was trying to implement an obfuscation tool for C-code on the basis of
LLVM. I got a prototype of the simple obfuscation transformation which
converting control flow graph to something like a state machine. I am not
sure I will have time to work on extending further this tool with new
transformations like opaque predicates and decided to put here source code I
have by now with hope
2012 Jan 28
2
after_save in plugin
Dear list,
I am trying to override an after_save callback declared in main app
using plugin.
The main model class is:
class WorkHours < ActiveRecord::Base
@after_save_call_back_called=0
after_save :after_save_call_back
def after_save_call_back
logger.debug "after save called"
@after_save_call_back_called=1
end
end
And in my plugin (in the lib directory) :
module
2012 May 28
4
How to load a selection list into the method new of a controller?
Hi friends!
I''m relatively new with Rails and I''m struggling for a long time with this
problem (it should have a pattern solution but until now I didn''t find it):
I have the following models: Institution, City, State and Country.
class Country < ActiveRecord::Base
has_many :states
has_many :cities, :through => :states
end
# == Schema Information
# Table
2017 Nov 14
1
Re: [PATCH v12 3/3] New tool: virt-builder-repository
On Mon, Nov 13, 2017 at 02:56:12PM +0100, Cédric Bosdonnat wrote:
> +let checksums_get_sha512 = function
> + | None -> None
> + | Some csums ->
> + try
> + Some (List.find (
> + function
> + | Checksums.SHA512 _ -> true
> + | _ -> false
> + ) csums)
> + with Not_found -> None
This is still a bit
2010 Sep 30
3
No hotspot probes enables
Hi,
I''m trying to trace a jvm using the hotspot provider. I''ve enabled the flag ExtendedDTraceProbes for the running process:
/opt/j2sdk-1.6.0.16/bin/amd64/jinfo -flag +ExtendedDTraceProbes 25255
But I didn''t get the expected result:
dtrace -n ''hostspot$1::: {} '' 25255
dtrace: invalid probe specifier hostspot$1::: {} : probe description
2008 Aug 30
0
[PATCH] btrfs: remove unused function btrfs_ilookup
btrfs_ilookup is unused, which is good because a normal filesystem
should never have to use ilookup anyway. Remove it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: btrfs-unstable/ctree.h
===================================================================
--- btrfs-unstable.orig/ctree.h 2008-08-30 11:08:58.000000000 -0300
+++ btrfs-unstable/ctree.h 2008-08-30 11:09:10.000000000
2007 Aug 10
2
jinfo, jboss and ExtendedDTraceProbes
Hi,
I would like to use dtrace to observe some behaviour in my J2EE app
running in JBoss. I start JBoss normally in a 1.6 VM. When I try to
enable set the ExtendedDTraceProbes flag using jinfo, I get a thread
dump in the JBoss console and the message: "Unable to open door: target
process not responding or HotSpot VM not loaded" in the jinfo console.
I have tried this with both
2017 Apr 12
0
[PATCH v6 10/10] Add a virt-builder-repository tool
virt-builder-repository allows users to easily create or update
a virt-builder source repository out of disk images. The tool can
be run in either interactive or automated mode.
---
.gitignore | 3 +
builder/Makefile.am | 84 +++++-
builder/repository_main.ml | 570 ++++++++++++++++++++++++++++++++++++
builder/test-docs.sh | 2
2017 Jun 19
0
[PATCH v7 9/9] Add a virt-builder-repository tool
virt-builder-repository allows users to easily create or update
a virt-builder source repository out of disk images. The tool can
be run in either interactive or automated mode.
---
.gitignore | 3 +
builder/Makefile.am | 84 +++++-
builder/repository_main.ml | 584 ++++++++++++++++++++++++++++++++++++
builder/test-docs.sh | 2
2017 Sep 18
0
[PATCH v9 7/7] New tool: virt-builder-repository
virt-builder-repository allows users to easily create or update
a virt-builder source repository out of disk images. The tool can
be run in either interactive or automated mode.
---
.gitignore | 3 +
builder/Makefile.am | 85 +++++-
builder/repository_main.ml | 589 ++++++++++++++++++++++++++++++++++++
builder/test-docs.sh | 2
2017 Oct 05
0
[PATCH v11 6/6] New tool: virt-builder-repository
virt-builder-repository allows users to easily create or update
a virt-builder source repository out of disk images. The tool can
be run in either interactive or automated mode.
---
.gitignore | 3 +
builder/Makefile.am | 86 +++++-
builder/repository_main.ml | 597 ++++++++++++++++++++++++++++++++++++
builder/test-docs.sh | 2
2017 Sep 12
0
[PATCH v8 7/7] Add a virt-builder-repository tool
virt-builder-repository allows users to easily create or update
a virt-builder source repository out of disk images. The tool can
be run in either interactive or automated mode.
---
.gitignore | 3 +
builder/Makefile.am | 89 +++++-
builder/repository_main.ml | 590 ++++++++++++++++++++++++++++++++++++
builder/test-docs.sh | 2
2006 May 17
3
RJS behave differently than render :partial?
I have a method in my controller like the following (the syntax may not
be correct, I''m doing this from memory - you should be able to get the
idea though) My rhtml page has a DIV with id="country_areas", which
contains a partial that only makes a drop down of country areas for a
specific country. When changing the country in the country drop down, it
uses the
2010 Mar 26
7
seed data
Hi
I am using seed_fu to seed initial data to tables
(http://github.com/mbleigh/seed-fu) . And in db/fixtures/state.rb
I have values like (I am filling only two data for simplicity)
State.seed_many(:name, :abbr,:fips,:country_id, [
{ :name => "Alberta", :abbr => ''AB'',:fips => ''01'', :country_id =>
2 },
{ :name =>
2007 Nov 07
5
Unexplainable failure...at least for me
I have an address model with country_id and province_id fields
There is also a full_address method that returns an address that is in a
format that the google maps api will be able to return a long-lat
coords.
Within the full_address method there is a call to obtain the
province/state and country name.
---------
def full_address
...
full_address = [city, self.province.name,
2006 Jun 09
0
partials and rjs
I must have a misunderstanding of partials, maybe one of you can help me
out. I have a page that initially displayed via the following:
<-- in controller -->
def find_areas_for_country
@country_areas = CountryArea.find(:all, :conditions => ["country_id
= :country", params], :order => "descr asc")
render :partial => ''country_area''
2017 Nov 13
0
[PATCH v12 3/3] New tool: virt-builder-repository
virt-builder-repository allows users to easily create or update
a virt-builder source repository out of disk images. The tool can
be run in either interactive or automated mode.
---
.gitignore | 4 +
builder/Makefile.am | 87 ++++-
builder/repository_main.ml | 621 ++++++++++++++++++++++++++++++++
builder/test-docs.sh
2010 Nov 09
2
Undefined method
I am very new to ROR. (Ruby 1.8.7, rails 2.1.1, rack
0.8.7, mysql 5.1.41)
I has my_app/lib/migration_helpers.rb file:
module MigrationHelpers
def self.foreign_key(from_table, from_column, to_table)
constraint_name = "fk_#{from_table}_#{to_table}"
execute %{alter table #{from_table}
add constraint #{constraint_name}
foreign key (#{from_column})