Displaying 20 results from an estimated 700 matches similar to: "ActiveResource and (polymorphic) associations"
2006 Jul 06
5
What is protected?
In http://www.aidanf.net/rails_user_authentication_tutorial there is the
string/method
protected
in the model. What does it do? Can''t find that in
http://api.rubyonrails.org/.
--
Posted via http://www.ruby-forum.com/.
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi,
I''m really new to rails, so i programmed some stuff and today i read
some things about skinny Controllers, fat models.
My Controllers are really fat now. So i''m asking myself how can i
shrink my controllers and move the code to the models, especially in
fact of REST e.g. in focus on error codes?
code example:
# POST /tasks
# POST /tasks.xml
def create
@authorized
2011 Apr 02
7
rails_upgrade maintenance
There was a thread a little earlier in the year about maintaining the official Rails plugins. It would seem that rails_upgrade has been left by the wayside, with pull requests dating back as early as September last year. It''s mentioned in the 3.0 release notes as a way of checking your application for changes between 2.3 and 3.0, but what''s the point if the official version of it
2007 May 07
2
Asterisk to record CDR in DB Oracle
Hi People,
I had success to do my asterisk to record CDR in a databese MYSQL...
Now, I need to do it to record CDR in Oracle...
Does Anybody knows how to do this??
Every hints are welcome....
Thank`s all
Everton Goularth
Uberlandia - MG - Brazil
_______________________________________________________
Yahoo! Mail - Sempre a melhor op??o para voc?!
Experimente j? e veja as
2008 Apr 24
3
DRYing up controllers
Hi
I''m a big fan of plugins such as Resource Controller
http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special
However, recently decided I don''t want to depend on a plugin for this,
and would rather stick closer to the rails core.
So does anyone have any cool strategies or ideas for achieving this?
Or is there any move to
2006 Jul 10
2
Polymorphic associations in reverse?
My app has an association that''s got me scratching my head.
I have Users, and Images. A User has many Images. (Yes, another
picture sharing app, but it''s for a small niche, and it doesn''t end
in -r!)
I would like to express a "Favorite" relationship between both Users
to Users, and Users to Images. This seems like the opposite of the
standard
2017 Aug 31
2
Manually delete .glusterfs/changelogs directory ?
Hi Mabi,
If you will not use that geo-replication volume session again, I believe it
is safe to manually delete the files in the brick directory using rm -rf.
However, the gluster documentation specifies that if the session is to be
permanently deleted, this is the command to use:
gluster volume geo-replication gv1 snode1::gv2 delete reset-sync-time
2007 Dec 04
1
Fax on asterisk
Hi people,
I'm tring to configure fax on my asterisk server. I'm using the
instructions of: http://www.asteriskguru.com/tutorials/spandsp.html and
the files app_rxfax.c, app_txfax.c and apps_Makefile_patch from:
http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asterisk-1.2/
I have already configure this on other server that the operation system
is CentOS 4 and all
2014 Dec 05
3
Change domain name
it is possible to change the name of the domain?
ad.domain.local
to
domain.local
Samba4 version 4.1.13
Thank you
2007 May 02
2
Asterisk-1.4 with agent snmp
Hi,
I`m trying to use the agent snmp buit in the asterisk-1.4, but I can`t
do this...
I used this link to do it: http://www.voipphreak.ca/archives/382 but I
can't...
Does somebody know how to do this or knows a how-to to do this??
Thank's
_______________________________________________________
Yahoo! Mail - Sempre a melhor op??o para voc?!
Experimente j? e veja as
2010 Dec 20
4
Subselection by URL
Hey guys,
I''m quite new in RoR, so please excuse me when I may ask weird
questions.
I am working on a database frontend. The layout looks mostly like
a has_many bs
b has_many cs
c has_many ds
and so on. Now I want to do some selection. Maybe I want to see all ds
belonging to a specific b. I would like to do it like:
http://my.host/bs/1/ds
When I click around there (add new ds, show a d
2017 Aug 30
4
GlusterFS as virtual machine storage
Ciao Gionatan,
I run Gluster 3.10.x (Replica 3 arbiter or 2 + 1 arbiter) to provide
storage for oVirt 4.x and I have had no major issues so far.
I have done online upgrades a couple of times, power losses, maintenance,
etc with no issues. Overall, it is very resilient.
Important thing to keep in mind is your network, I run the Gluster nodes on
a redundant network using bonding mode 1 and I have
2011 May 26
2
Rails new without test unit
When creating a new rails project (3.1.0.rc1) with no test unit
options, it still create test unit rake tasks.
rails new my_project --skip-test-unit
rails g :
TestUnit:
test_unit:controller
test_unit:helper
test_unit:integration
test_unit:mailer
test_unit:model
test_unit:observer
test_unit:performance
test_unit:plugin
test_unit:scaffold
Is this correct ??
--
You received
2007 Sep 25
2
show queue (queue name)
Hi all,
does anybody know any way that when it run "reload app_queue" in the
asterisk cli it don't lose the informations from "show queue (queue
name)" ?
I'm passing for this trouble, because I need this informations
(http://www.voip-info.org/wiki/index.php?page=asterisk+cli+command+show+queue)
that asterisk cli command "show queue (queue name)" show me
2007 Jun 20
1
Res: Record CDR in a Oracle database
Hi All,
Thank's for your hint Tim Panton
I could connect my asterisk machine to my oracle machine.
I used unixODBC-2.2.11.tar.gz,
oracle-instantclient-basic-10.2.0.3-1.i386.rpm,
oracle-instantclient-sqlplus-10.2.0.3-1.i386.rpm and the drive from
www.oracle.com (odbc-oracle-3.1.0-linux-x86-glibc.tar) to configure my
asterisk machine.
I can connect to my oracle machine with isql and in
2017 Aug 30
0
GlusterFS as virtual machine storage
There has ben a bug associated to sharding that led to VM corruption that
has been around for a long time (difficult to reproduce I understood). I
have not seen reports on that for some time after the last fix, so
hopefully now VM hosting is stable.
2017-08-30 3:57 GMT+02:00 Everton Brogliatto <brogliatto at gmail.com>:
> Ciao Gionatan,
>
> I run Gluster 3.10.x (Replica 3 arbiter
2017 Aug 24
3
NFS versus Fuse file locking problem (NFS works, fuse doesn't...)
Hi
This is gluster 3.8.4. Volume options are out of the box. Sharding is off
(and I don't think enabling it would matter)
I haven't done much performance tuning. For one thing, using a simple
script that just creates files I can easily flood the network, so I don't
expect a performance issue.
The problem we see is that after a certain time the fuse clients completely
stop accepting
2017 Aug 30
3
GlusterFS as virtual machine storage
Solved as to 3.7.12. The only bug left is when adding new bricks to
create a new replica set, now sure where we are now on that bug but
that's not a common operation (well, at least for me).
On Wed, Aug 30, 2017 at 05:07:44PM +0200, Ivan Rossi wrote:
> There has ben a bug associated to sharding that led to VM corruption that
> has been around for a long time (difficult to reproduce I
2008 May 27
2
HABTM using two columns
Hi all,
I was wondering whether anyone could guide me to docu and code
examples how to create and use a has_and_belongs_to_many relationship
with a joining table where TWO columns are used to identify the
relation to TWO alternative tables.
Example:
table 1: mothers [mother_id, name]
table 2: fathers [father_id, name]
table 3: children [child_id, name]
joining table 4: children_parent
2017 Aug 24
2
NFS versus Fuse file locking problem (NFS works, fuse doesn't...)
Hi all,
I usualy advise clients to use the native client if at all possible, as it
is very robust. But I am running in to problems here.
In this case the gluster system is used to store video streams. Basicaly
the setup is the following:
- A gluster cluster of 3 nodes, with ample storage. They export several
volumes.
- The network is 10GB, switched.
- A "recording server" which