Displaying 20 results from an estimated 1000 matches similar to: "Observers?"
2006 Mar 04
2
Declaring ActiveRecord observers
Hello
I''m using the ''act_as_authenticated'' plugin to implement a small and
simple authentication system in my app. Everything is working just
fine and the world is a better place to live in. The plugin creates a
ActiveRecord observer in order to send the newly registered user a
confirmation e-mail.
Per the API docs [1], one should declare the observer in the
2006 Aug 16
8
Multiple (AJAX) Observers on the Same Field and MSIE
I have been using multiple observers, i.e., observe_field(), on the same
input field and relying on them to execute in the same order that they
appear in the page. This has been working fine in FireFox, but it does
not seem to work in MSIE; the requests come in and are processed in a
different order. Now, I''ve always been a little hesitant about using
this technique, but it always
2006 Jul 21
2
ActiveRecorod observers don''t work in mongrel?
Am i wrong or do ActiveRecord observers not work in mongrel? Is there
a work around for this?
I am 100% sure of this because in my observer i put raise "whatever".
Whenever I try update the model using the mongrel server I get a
successful save. If I do it in webrick I get an exception raised.
Any ideas what I should do? Because webrick is pretty annoying to
work with.
Thank
2007 Jul 30
4
Stubbing Observers in rails?
In most of my tests I''d like to be able to stub out the observers for my
models, but I''m not sure the best way to do this. I doesn''t look like there
is a way to stub all instance methods, and I don''t seem to be able to stub
early enough to stub out the observer as it''s instantiated. I can think of
several hackish ways to get around it, but I was
2007 Jan 18
1
spec''ing models with observers that send mail
I''m spec''ing a model with an observer that sends mail. Mailers behave
similarly to controllers, so to make the whole thing work, I believe
something like integrate_views has to be available. Has anyone dealt
with observers and ActionMailer?
Thanks
2006 Jul 05
1
Process incoming SOAP requests?
We currently have a SOAP server that processes incoming requests. I''d
like to rewrite this system (maintaining the same SOAP interfaces)
utilizing RoR. What is the easiest way to go about this?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2012 Dec 06
2
Bye Bye, Observers
Observers will be no more as of Rails 4, farewell, never been much of a
fan. However, I''m using it in one of my gems which enables model attributes
for use with a WYSIWYM editor. The resulting markup is persisted, but in
order to use it in a view, it has to be nokogiried in a helper which
fragment caches the result. This cache has to be zapped once the model
instance is either
2006 Apr 05
10
RoR with CSS on Firefox?
Does anybody have any experience getting CSS working with RoR on Firefox? I need help!!!
I''m trying to move to the <div> model from the <table> model so I can use AJAX. The move to <div>s requires I also start using CSS for layout, etc.
So here''s the problem I''m having.
Firefox will not use the styles I''ve defined for the <div>s.
2005 Nov 08
1
Event.observers - I''m totally list - please help
Hello,
I need some help on how to use the Event.observers - thank you in advance
for your input.
<div class="navcontainer">
<ul id="nav">
<li class="button">
<img src="images/spacer.gif" width="20" height="20">
</li>
<li class="button">
<img
2010 Apr 16
1
Active Record observers broken: can't be used for "before" callbacks
I was just wondering what about a report that I made almost 2 months
ago: Active
Record observers
broken<https://rails.lighthouseapp.com/projects/8994/tickets/4087-activerecord-observers-cant-be-used-for-before-callbacks>
I think it''s a pretty big bug. In Rails 3, creating an observer with a
"before_save" callback (for instance) will result in all observed models
being
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
2006 Jul 21
3
Help me run rails on apache on Linux Fedora
Hello all,
I am new on the rails list, having signed up today, but I am in
the midst of some sticky business getting rails to go on my linux
system. I am running Fedora Core 4, with Ruby 1.8.4 and Apache 2.0.54.
I have setup the chapter 4 tutorial from the "agile book" and
everything works absolutely perfectly using Webrick. I got
rails 1.1.3 from ruby gems, and since have done an
2004 Aug 13
5
simtest for Dunnett's test
Hi!
I use simtest fonction of multcomp package to compile a Dunnett's test.
I have 10 treatments and one control group, so i create a matrix with:
m<-matrix(0,10,11)
m[1,1]<--1
m[1,2]<-1
m[2,1]<--1
m[2,3]<-1
m[3,1]<--1
m[3,4]<-1
m[4,1]<--1
m[4,5]<-1
m[5,1]<--1
m[5,6]<-1
m[6,1]<--1
m[6,7]<-1
m[7,1]<--1
m[7,8]<-1
m[8,1]<--1
m[8,9]<-1
2011 Apr 29
1
Use nparcomp function from nparcomp library to run post hoc
Dear list,
I tried to use the nparcomp to run some post hoc non-parametric comparison
and got and error.
Error in uniroot(pfct, interval = interval) :
f() values at end points not of opposite sign
Appreciate any comments.
the command line:
>nparcomp(Ulceration~Group,data=test,type='Dunnett',control='Non-treated')
Jun
2008 Feb 14
1
Replacing a character string when finding substring match
Dear R-experts,
I need to replace the values of a vector(tx) with a
word ('Vehicle') when the value of the vector contains
the word 'vehicle'. Sometimes, the value could be 'MCT
vehicle', or 'control-vehicle', etc.
I tried gsub like this
treatment<-gsub('vehicle','Vehicle', tx,
ignore.case=T)
But then I end up with values like 'MCT
2001 Apr 15
2
data manipulation in R
Dear List:
I have a data manipulation problem that I was unable
to solve in R. I did it in SQL, and it may be that
the solution in R is to do it in SQL, but I wondered
if people could imagine a vector-based solution.
Imagine a list A[i] of observers who observe some set
of events B[j]. Each observer i may observe one or
more events, and each event j may have been observed
by one or more
2009 Mar 01
1
projecting GIS coordinates for analysis with spatstat package
I am working on creating an R package for doing fire department analysis and
am trying to create a function that can display emergency incident
densities. The following code sort of does the trick, but I need a display
that shows the number of incidents per square mile. I believe the code
below shows incidents per square unit (in this case, degrees lat/long).
To solve this problem, I believe
2009 Nov 26
15
bad move? - complex form with *many* observe_field's
I have a pretty complex form with many text fields and a number of
selects. We let the user add multiple types of associated objects to
the parent object and to edit the values for those associated objs, so
the form can have something like the following number of fields on the
page:
9 text fields + 3 selects + a*(1 text + 1 select) + b*(1 text + 1
select) + c*(1 text + 1 select) + d*(1 text +
2006 Dec 04
1
Model Testings with Observers
I have a Rails model that has an observer. The function of the
observer is to send an email when a particular state change occurs in
the model. Because the template rendering code is not loaded when
doing model testing, I''ve had to shut off the email functionality of
the observer for testing.
Is there a better way to handle this?
Thanks
2011 Oct 20
3
Survival analysis
Hello,
I need some results from the survival analysis of my data
that I do not know whether exist in Survival Package or how to obtain if
they do:
1. The Mean survival time
2. The standard error of the mean
3. Point and 95% Lower & Upper Confidence Intervals estimates
Any help will be greatly appreciated.
Cem
[[alternative HTML version