Displaying 20 results from an estimated 40000 matches similar to: "Observer Subject Pattern on Rails."
2006 May 17
3
Slackware 10.2
Hi guys, I'm trying to use asterisk with my slackware 10.2 box.
Kernel 2.6.13 from the testing...
The udevd are not creating the /dev/zap devices.
Someone already have success installing asterisk over slackware?
Thanks in advance.
Fernando Lujan
2006 May 18
1
R2/MFC Configuration.
I'm trying to put asterisk working with a proprietary pbx system.
I'm doing it using a T1 crossover cable. The pbx system uses the R2/MFC
specification. And the don't inform if it uses cas, ccs, ami or hbd3.
My digium card is flashing a red light.
How can I put this working with the R2/MFC system?
Thanks.
Fernando Lujan
2006 May 10
2
Rails, Postgres and the Date Field.
Hi guys,
I''m having problems with my app. First of all, I created a date_select
with the code:
<%= date_select(''contact'', ''birthday'', :order => [''day'',''month'',''year'']) %>
In the contacts table, I create a date field:
birthday DATE
When I save the values goes wrong into the database.
2006 Jun 08
1
Observable notifying a controller.
I want to code the following task:
I have a class, for instance, class A with is a observable.
I want to add a controller of my rails system to this class. So I can
notify_observer, and it updates all controllers of my system.
How do I pass a controller as a parameter to the add_observer() method?
And where I put this code?
Thanks in advance.
Fernando Lujan
2006 May 24
2
TE406P - MFC/R2
Guys,
I'm trying to configure a TE406P with MFC/R2.
here goes my zaptel.conf:
span=1,0,0,ccs,hdb3,crc4
cas=1-15:1101
dchan=16
cas=17-31:1101
span=2,0,0,ccs,hdb3,crc4
cas=32-46:1101
dchan=47
cas=48-62:1101
The first strange behavior is that the:
zap show status
shows this:
Description Alarms IRQ
bpviol CRC4
T4XXP (PCI) Card 0 Span 1
2006 Mar 29
5
Asterisk Between PBX and FXS
Hi guys,
I''m setting up asterisk to run with another pbx server. This pbx server
support a feature that allows 2 extensions connect to the same FXS. No I put
asterisk in the middle.
Asterisk receives the call and dial to a SIP/peer.
How the pbx installed support 2 extensions to one fxs... How can I figure out
in asterisk which extension was dialed before the call came to asterisk?
2006 Apr 04
2
Ajax Effects Tutorial
Hi there,
I am in love with rails... And now I want to rule Ajax effects with
rails. Where could I find a book like: Ajax on Rails? :)
Tutorials will be welcome too.
Thanks in advance.
Fernando Lujan
2006 May 10
3
has_many association.
I''m creating a address book.
A user can have many contacts.
In the user model, I put:
has_many :contacts
And in the contact model, I put:
belongs_to :user
To list all contacts, I search as following:
@user = User.find(session[:user_id])
And rendering:
<%= render(:partial => "contact", :collection => @user.contacts)%>
To persist I am using the following
2007 Oct 30
2
WebDav Support.
Hi guys,
I read that mongrel supports the webdav protocol. I need to "create" the
webdav files and allow a third party app access it just for read purposes.
What do you recommend?
--
Fernando Lujan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20071030/1527bd35/attachment.html
2006 May 09
1
Reusing a model to form and link_to.
Hy guys,
Inside my app I have a form which contains user information.
Sometimes a have a form with a text_field as above:
<%= form_remote_tag(:html => { :action => url_for(:controller =>
"my_controller", :action => "my_action") }) %>
<%= text_field(''my_object'', ''my_parameter'', :maxlength =>
2006 May 05
5
Sessid.
How can I get the sessid from the current session object?
For instance, I log in the system, and want to know which sessid I''m using.
I''m storing the session using active_record. Later on, I want to restore
a session finding it using the sessid.
Thanks in advance.
Fernando Lujan
2006 May 03
1
Differences betwen check_box_tag and check_box form helper.
What is the difference between the check_box_tag and the check_box form
helper?
I can''t understand why both must exist. :(
Thanks.
Fernando Lujan
2007 Sep 03
2
Mongrel and Memory usage.
Hi,
I am using mongrel for a long time... But just now I see a problem. I am
running 3 instances using mongrel_cluster and nginx as a reverse proxy. When
I start the cluster I have a memory usage of 20MB per instance... In the end
of the day this usage is something about 230MB for each instance. It should
be a memory leak?
Thanks for the help.
--
Fernando Lujan
-------------- next part
2011 Aug 26
2
Observer for checkbox
Hi!
I want to put a checkbox on my data list in index view, and change his value
on database when I change the value of this chekbox.
Someone know how is the good way for do it?
Thanks!
--
*Fernando Aureliano*
--
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
2006 Apr 12
0
Model in two different parts of the app.
I have a doubt about using models.
I have a application with two parts. The first is a login system to
users, and the second is a administrative interface.
The administrative interface I create in a directory called admin
Both parts use the model User. Can I put the model user only in the
model directory or I should duplicate it in the /models/admin/ too?
Thanks in advance.
Fernando Lujan
2006 Jun 07
0
How-To monitor a specific channel?
Gruys,
How can I record a specific channel if Monitor doesn't receive it as a
parameter?
Can I do a combination with the ZapBarge app?
I want to record calls in some channels.
Thanks in advance.
Fernando Lujan
2006 Jun 20
0
ChanSpy on a specific channel.
Guys, I'm trying to run chanspy on a specific channel without success..
extensions.conf:
exten => 5,1,ChanSpy(IAX2/)
Result:
-- Executing ChanSpy("IAX2/127.0.0.1:32783-1", "IAX2/") in new stack
-- Playing 'beep' (language 'en')
-- Playing 'beep' (language 'en')
-- Playing 'beep' (language 'en')
2007 Jul 17
0
Multiple inserts on a through association.
class Trunk < ActiveRecord::Base
has_many :call_type_trunks
has_many :call_types, :through => :call_type_trunks
end
class CallType < ActiveRecord::Base
has_many :call_type_trunks
has_many :trunks, :through => :call_type_trunks
end
class CallTypeTrunk < ActiveRecord::Base
belongs_to :call_type
belongs_to :trunk
end
The associaton class has a column named price.
2007 Dec 14
0
async-observer rails plugin
I''m pleased to announce the existence of async-observer.
This is the very first public release. In the future I''ll confine
announcements to the beanstalk-talk mailing list.
WHAT IS ASYNC OBSERVER?
-----------------------
Async Observer is a Rails plugin that provides deep integration with
Beanstalk.
beanstalkd is a fast, distributed, in-memory work-queue service. Its
2010 Aug 24
0
Rails 3 Observer: No support for after_commit?
Rails 3 adds after_commit and after_rollback callbacks, but it appears
they are not available as methods in an Observer. Is that the way it''s
supposed to be, an oversight, or am I doing it wrong?
Thanks.
--
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