similar to: ActiveRecord::Observer problem

Displaying 20 results from an estimated 100 matches similar to: "ActiveRecord::Observer problem"

2010 Nov 30
0
simple SQLITE3 error!!??library routine called out of sequence
Hi, dear guys! I have following super simple program dbh=DBI.connect("DBI:SQLite3:barron.db") sth=dbh.prepare("INSERT INTO WORDS VALUES(?,?,?)") 3.times{ sth.execute("1","2","3") } and it gives me error : /Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_param'': library routine called
2006 Aug 01
8
Decoupled observers for controllers?
In the Rails Recipes book the recipe "Keeping track of who did what" explains how to do decoupled observing of models. In my application I''d like to do a similar thing but watching the controllers. For example, when somebody hits the login method of the Security controller, I''d like to make a note of it. In this case I could observe the User model and watch for
2011 Jan 23
1
Trouble installing SWAT on a Samba 4 Alpha 13 build on Ubuntu Server
Hello all, I have setup a complete domain using Samba 4 on my Ubuntu server 32 bit machine. I am using the Alpha 13 build (it was actually in the Ubuntu Repos). I am trying to setup swat to make it easier to manage shares. I have followed the instructions at https://github.com/rvelhote/GSoC-SWAT but I am having a few problems. When I run ./run I get the following errors: jenfab at
2011 Jan 24
4
Trouble installing SWAT on a Samba 4 Alpha 13 build onUbuntu Server
> > I am not sure how to use Microsoft AD tools to create shares and then > set > those shares permissable to certain AD groups. For example, I need to > create > a share called "Finance" and only the people in Finance can read/write > to > it. I was hoping to use SWAT to help in creation and management of > those > shares. vi smb.conf (or your favorite
2011 Jan 24
1
Trouble installing SWAT on a Samba 4 Alpha 13 buildonUbuntu Server
> > > But when I click apply, the jenfab\finance group dissappears from the > list and the changes never save. What OS are you using? If Linux then make sure share file system is xattrs capable and enable it in /etc/fstab (I believe). If not you can use: posix:eadb = /usr/local/samba/private/eadb.tdb in global. This does NOT scale well. > > > > I have tried giving
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be existing.I
2007 Jan 03
12
instalation problem
Hi Im testing wxRuby. I have a problem when ruby try to load the load wx. Im newbie to ruby, maybe a make a simple mistake : Best regards. Install wxRuby-------------------------------------------------------------- pedro@la-vaca-azul:~$ sudo gem install wxruby2-preview Need to update 2 gems from http://gems.rubyforge.org .. complete Select which gem to install for your platform (i486-linux)
2006 Mar 30
1
Globalize DB translate not working in Rails 1.1.0
It seems there have been some changes to ActiveRecord between Rails 1.1.0 RC and 1.10 Final that cause Globalize to fail; 1.10 RC was working fine. When retrieving records from the DB only the base language version is fetched, even when the locale has been set differently. The SQL in the log confirms that Globalize is ignored and a regular find() is performed.
2009 Dec 29
1
help with WebBrick
Anyone knows how to fix that? [...] /set.rb:202: [BUG] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux] Aborted [...] and server shut down :( -- 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
2012 Aug 17
1
RGDAL OGRwrite question
I have a quick question: It appears that in rgdal v0.7-12 (R version 2.15.1, OSX 10.6.8) writeOGR will not write a shapefile the the current directory. Is this correct? An earlier version of rgdal must have allowed this because I have a older script that used to work, but doesn't now. So, as an example, here is what I get today: > shape = readOGR('.',
2005 Jun 10
1
Convert extensions.conf INTO MySQL script
I swear I read somewhere on one of the MANY pages that there is a script out there that can read the extensions.conf file and create the MySQL DB records on the fly. Anyone know where I look for such a thing? Sure speeds up migration! Chris Coulthurst chris@shuksan.com
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain the Searcher of multiple directories. If I do not have the searcher.close called, the end of runner/console or runner/server will pop out with system error: *** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 *** ======= Backtrace: ========= /lib/libc.so.6[0x638ac1]
2003 Sep 29
0
RE: Asterisk list a SPAMer (uol.com.br), I t hink not ...
Thanks, annoying but only course of action I guess ... (c; > -----Original Message----- > From: WipeOut [mailto:wipe_out@lycos.co.uk] > Sent: 29 September 2003 10:36 > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] RE: Asterisk list a SPAMer > (uol.com.br), I think not ... > > > Just add a filter to your mail client to delete all mail from >
2010 Jul 20
20
render :js => "alert('Test !')"
Hi Folks, I use render :js => "alert(''Test !'')" in my modele, but instead of having the alert displayed, the browser try to donload a file containing this string : <<render :js => "alert(''Test !'')">>. Do you know why I the browser behaves such a way ? Regards -- Posted via http://www.ruby-forum.com/. -- You received
2007 May 28
0
[ wxruby-Bugs-11183 ] GLib errors cause crash
Bugs item #11183, was opened at 2007-05-28 10:28 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=11183&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Patrick McDonnell (kc9ddi) Assigned to: Kevin Smith (qualitycode) Summary: GLib errors cause crash Initial Comment: Hi - I''m
2006 Nov 02
0
DB: class to multiple rows mapping (aka rails 'osproperty')
Hi, Has anyone implemented some sort of automatic class to dynamic table mapping ? The idea is to have a single table capable of storing various unrelated classes. Some sort of Extreme polymorphism. I''ve used this with other languages. E.g. osproperty in Java. The idea is the following In the DB create table dynamicobjects ( id int, object_type varchar(255), key_name
2016 Jun 16
2
https and self signed
On 15.06.2016 15:57, ????????? ???????? wrote: > Nowadays it's quite easy to get normal ssl certificates for free. E.g. > > http://www.startssl.com > http://buy.wosign.com/free that is right, but hink of your potential clients, because wosign has a problem - slow OCSP, ... because their server infrastucture is located in China, and not the best bandwidth ... when validity checks
2016 Jun 16
2
https and self signed
On 16.06.2016 21:42, ????????? ???????? wrote: >> that is right, but hink of your potential clients, because >> wosign has a problem - slow OCSP, ... >> because their server infrastucture is located in China, and not the >> best bandwidth ... >> >> when validity checks of the used SSL certificate very probable fail, >> it is worse than not using SSL ...
2006 Nov 12
0
[ wxruby-Bugs-6633 ] Serious (but harmless?) GTK warnings on Linux
Bugs item #6633, was opened at 2006-11-12 16:46 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6633&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Serious (but harmless?) GTK warnings on Linux Initial Comment:
2008 Sep 10
2
DNS Logging with Selinux enabled
I rebuilt my server and setup bind to log queries in a chroot. ################################################################################ # Logging Configuration # logging { # # Define channels for the two log files # channel query_log { severity info; print-time yes; file "/var/log/query.log" versions 3 size 100M; }; channel activity_log