similar to: Run code on application launch

Displaying 20 results from an estimated 30000 matches similar to: "Run code on application launch"

2006 Aug 25
2
really a GemPlugin/mongrel_cluster question
Hi folks, I''d like to run the Mongrel prerelease (0.3.13.4 prerelease) and mongrel_cluster 0.2.1 on my shared host (which doesn''t want to install prerelease software for all to use). I can install the gems in my own directory, and run mongrel 0.3.13.4 with --prefix just fine. However, I think due to the GemPlugin structure, even my new mongrel_rails loads up
2006 Jul 28
0
or, alternatively....
Related to serving multiple apps in one domain: Is there something I can do in a Mongrel configuration file that would do what I need to do, and kill the need for changing Mongrel? I see in the Typo 4.0.0 mongrel.conf that it has: blog = Mongrel::Rails.new(''/blog'',{}) uri "/blog", :handler => blog Does this do something like what I want? Thanks, Asa
2006 Jul 28
0
OK, so I''m not the first person...
Sorry for the flurry of messages. Looking through the archives, I see that what I want is available in 0.3.13.4 as ''--prefix''. Thanks! Asa ----------------- Work is love made visible ----------------- Asa S. Hopkins MC 266-33, Pasadena, CA 91125 asa at caltech.edu http://www.its.caltech.edu/~asa/ ----------------- -------------- next part -------------- An HTML attachment
2006 Jul 28
0
URL root/serving more than one app per subdomain
Hey folks, I have the following situation: I have a secure server, and I''d like to run multiple Rails apps without dealing with setting up multiple secure servers, with their fixed IPs, etc. So, I want to do https:// secure.domain.com/app1/ and https://secure.domain.com/app2/ etc. In lighttpd this is possible using a combination of relative_url_root in each app (in
2006 Apr 03
6
problems with Rails 1.1 observe_field :with serialized
I''d like to use observe_field to watch a field, and then when it changes send the entire form to the server. I had been using <%= observe_field ''entity_name_''+@account.id.to_s, :frequency => 0.5, :update => ''auto_complete_''+@account.id.to_s, :url => { :controller => ''committees'', :action=>
2006 Feb 01
1
Scaffolding Extensions plugin and multiple HABTMs
Hello list, For a school management application, I''ve got three tables: - people - subjects - roles (e.g. ''Teacher'', ''Student'', ''Tutor'', ''Lecturer'', ...) The HABTM relationship is 3-way, with the links being stored in the people_roles_subjects table. A person can have a role in a subject, but may have different
2006 Apr 20
5
Using Migrations to convert join table to join model
Greetings, I''m trying to convert a HABTM w/attributes join table in my database into a join model table in order to utilize the new has_many :through functionality introduced in Rails 1.1. Here''s the current table definition: licenses_user_groups: license_id, user_group_id, usage_notes Perhaps it was a mistake, but I made (license_id, user_group_id) the primary key. Now,
2006 Jan 07
4
To Chris Hall - Re: DB Modelling the Rails way - Opinions??
Chris, Finally got time to fully play with your suggestions. Had to re-code a bit of stuff but the concept works - just like a bought one :~). Many thanks for the solution, Kind Regards, Eric. For those curious - here''s what it was about; On Monday 02 January 2006 02:10, Eric Sloane tried to type something like: > Hi, > I''m trying to figure the most efficient way to
2006 Jan 23
3
HABTM: Records with no parents
I have a habtm relationship between two models. What I want to do is find items that aren''t related. So like if you had authors <-> posts, how would you find authors who don''t have any posts? Or posts that don''t have an author ? Thanks, Alex Strand [astrand@razorcom.com] Razorcom www.razorcom.com
2006 Aug 16
1
Naming rights_roles join model using has_many :through and polymorphic associations
Hi. I have a couple of best practices questions regarding polymorphic associations, naming join tables and user permissions. Currently I have implemented the user authentication model from the rails recipes book. Basically it goes something like this: MODEL CLASSES: class User < ActiveRecord::Base has_and_belongs_to_many :roles end class Role < ActiveRecord::Base
2006 Jan 02
5
DB Modelling the Rails way - Opinions??
Hi, I''m trying to figure the most efficient way to model the following. I can think of at least two ways to relate the tables but from a client/server perspective! I''m wondering how to best (and elegantly)relate them from an AR perspective. A project has many people, A person can work on many projects at any time, A project has many roles, A role is performed by a person, A
2006 Feb 25
0
self referential habtm using join tables
All: I have been working on making a self-referential habtm relationship that uses a join model because I want to store info about the relationship. I have been using two sections from Chad Fowler''s "Rails Recipes" as a guide, "Self-referential Many-to-Many Relationships" and "Many to Many Relationships Where the Relationship Itself has Data". So far I have
2006 Jan 12
0
HABTM with conditional field in relation table
Hi all I have members in my application, and every member can assign other members as buddies. class Member < ActiveRecord::Base # Hat folgende Buddies has_and_belongs_to_many :buddies, :class_name => ''Member'', :join_table => ''members_have_buddies'',
2013 Feb 28
5
Puppet Manage Cisco ASA
Hello all, Does anyone currently manage Cisco ASA''s out there via Puppet, if so how ? Due to the size of our network it would be great if Puppet could manage Object-groups and ACL''s etc to try and standardize across our ASA hosts. e.g. On one ASA an Object-group would be called monitoring_server on another ASA mon_srv another ASA monsrv It makes understanding the
2004 Aug 06
1
Icecast2 Win32: any way to minimize on start or run asa service?
nullsfot installer can install console apps for windows services and i belive the latest icecast2 win32 comes with a icecast2 console. <p>Dave St John Mediacast1 Administrator ----- Original Message ----- From: Ross Levis To: icecast@xiph.org Sent: Wednesday, February 04, 2004 2:59 PM Subject: Re: [icecast] Icecast2 Win32: any way to minimize on start or run asa service?
2007 Oct 22
1
self-referential habtm: why are my keys null?
I''m trying to set up a directional self-referential HABTM to represent an arbitrary semi-hierarchical structure; it works for any data prepopulated into the db, but when I try to create a new relationship, I just get NULLs in both key columns (or 0''s if I turn on the no-null constraint). Here are the migrations: class CreateNodes < ActiveRecord::Migration def self.up
2006 Jan 15
2
single table inheritance: change object ''type'' after create?
Hey folks, I''m trying to keep track of couple of different kinds of "entities" in my rails app: "people", "organizations", and "committees". I have a single Entities table in the database, and I''m using Single Table Inheritance to keep the different subclasses in the same table, with a field "type". My problem comes when
2012 Nov 03
0
ids writer fields for HABTM relationship.
Hello forum readers, Let''s say i have two models: Person and Role (i replicated the problem with Post & Tag as well, as i thought the problem was linked to some application-specific rights problem, but it wasn''t). In Person, attr_accessible role_ids is declared, so it accepts an array of Role ids as an argument when creating / updating. If i fire up the rails console and
2006 Dec 08
19
HABTM join table quirk
I''ve been bringing up a good basica framework for applications at work. To give decent security I''ve been implementing the Rails Recipie for Authorization of function calls modeled on the book''s implementation. (Changes for our environment were added..but are minor.) Since I initially let Rails create the join table between two data tables with a HABTM relationship....I
2006 Jun 20
0
habtm has_many through and foreign keys
I have two models Role and Task ..and a join table/model RoleTask Now both roles and tasks have id as a primary key and name which is a unique identifier I want the join table to hold role_id and task_name I''ve tried using habtm with foreign key and association foreign keys set up and I''ve tried using has_many :through ..but they all seem to someone want to work with the