similar to: Seeking Advice on Pattern for Multi-Organization Application

Displaying 20 results from an estimated 8000 matches similar to: "Seeking Advice on Pattern for Multi-Organization Application"

2006 Jan 25
6
Displaying based on hostname/subdomain
Ive tried multiple ideas to get this to work, but keep hitting a dead end. Has anyone done this before? I want joe.domain.com to display www.domain.com/profile/joe Im using lighttpd. Routes dont have access to the URL string and therefore I cant code in a conditional. lighttpd rewrite seems to really screw it all up. Is there a feasible solution? Thank you, Joe Noon
2005 Dec 30
6
Unable to get the domain in my routes.rb to map custom route tables per domain
I have tried all night trying to find a way to get the host name which is currently being used within my routes.rb file to do some case/when switching for specific domains such as this cgi = ActionController::CgiRequest.new(CGI.new) case cgi.domain(1) when /www/ map.connect '''', :controller => ''public'', :action => ''index'' when
2006 May 09
4
subdomain
hi, how to create a subdomain outside the public directory and how to redirect to the subdomain -- Posted via http://www.ruby-forum.com/.
2008 Feb 08
1
Wildcard Subdomains & OS X Local Development
I''m using the simple account_location plugin to have virtual subdomains on my app (account.myapp.com - see Basecamp, Blinksale, etc.) How do you go about setting up your OS X system to play nice? I''d like to use Apache & Mongrel. Notes: The only thing I''ve able to accomplish is hardcoding the subdomains directly in my hosts file. I can get
2006 Feb 18
3
scoped databases need explanation...
Could someone explain this http://blog.leetsoft.com/articles/2005/10/31/scoped-databases in a way that can be understood with an example if possible. Tobi Lutke has started to explain but it does not make any sense. "Since rails 0.13.1 we support calling class methods over associations." what?? give an example. also "The Shop object is figured out at the beginning of each
2007 Oct 25
1
Mocking/Stubbing help with subdomain as account key
My app uses account_location to set up subdomains as account keys. In my controllers, all my model operations are scoped through the @current_person object. The question is: How do I test this with RSpec''s mocking and stubbing? Basically, I need to test that @current_person.things is getting the find message and returning @thing. I''ve tried stubbing and mocking
2006 Feb 13
4
FreeMIS 1.0 Released
FreeMIS is an open source management information system for schools, built with Ruby on Rails. I haven''t come across any other big open source projects using Rails so far - if nothing else, the availability of the source code might be useful for learners looking for ideas? If anyone would be interested in helping to develop FreeMIS, please get in touch. Details here:
2006 Jul 16
2
how does base camp manage there accounts
hi, Cant find any information this anywhere so was wondering if anyone had any ideas. Basically when you go to basecamp.com it allows you to sign up for a account and gives you a url username.projectpath.com I was just wondering how they do this, and if each account has there own database or if it is all stored in one. thanks scott -- Posted via http://www.ruby-forum.com/.
2006 Feb 08
10
Sharing sessions between subdomains?
Hello, I know how to share sessions between subdomains in PHP. Can anyone please guide me as to how I can share sessions using Ruby? Where can I set the value of domain for which the cookie is set? I would like for a user to login on the home page and then go to blog.home.com and not have to login again. Any guidance/pointers are appreciated. Thanks''
2006 Apr 16
11
Multiple domain name, One Rails application, is this possible?
Hello folks, I''m new to the Rails framework and don''t know where to look to find my answer. Here is the question, Is there a way to set multiple domain name for *a* rails application, and base on the URL do the work in the app. Imagine I have a user based document management system, each user want to access to her docs using her domain, but I don''t like to have many
2006 Jun 10
2
username.tadalist.com - How?
Hi. I was wondering how to do this in rails where the user gets a subdomain in the link of the site. example: username.tadalist.com Or if you know of a reference, please point me to it. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Sep 23
6
Connection to backgroundrb is lost when exiting action method
Hey. I have a very annoying problem, and was wondering what is wrong. Suppose I have backgroundrb running, and then I have an action in some controller. In the action I define a worker. When leaving the action, suddenly the connection to backgroundrb is lost: DRb URI: druby://localhost:22222 Pid: 3976 Autostart... done druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor -
2006 Jun 26
5
using application_helper.rb
I have a simple Yes/No selection list that I am using in a number of places. Thinking that I could DRY things out a bit, I added it to application_helper.rb ... YES_NO = [ [ "Yes", true ], [ "No", false ] ].freeze So I figured I would use it there instead of in each model.rb where needed. anyway, in webrick screen, I am continually seeing this...
2006 Sep 01
8
Worker suicide
Hi the list people, hi Ezra, I just read from this message http://rubyforge.org/pipermail/backgroundrb-devel/2006-July/000134.html that BackgrounDRb will offer a way to kill a worker from within itself. As this message is from 7/25, I wonder if this feature has been added since. If not, is there any way to do it? I tried this: MiddleMan.delete_worker(@_job_key) But it raise: uninitialized
2007 Apr 03
11
monit vs mongrel cluster
Is there anything mongrel cluster gives you that monit doesn''t? I''ll be using monit to monitor a number of other services anyways, so it seems logical to just use it for everything including mongrel. Chris
2006 Aug 23
5
Singleton-like Worker
Hello there, I need a Worker Class to be Singleton-like, that means there must be at maximum one Instance at a time. When a new Request is made to create another worker of this type, it should return and wait for the other instance to be destroyed. what i need to do: i have a worker who needs to do sth with java and openoffice, and it seems when i have more tha one worker simultaneously,
2006 Nov 09
6
OptimizedMutex for Mongrel
Hey Zed- I had a user with an app that was leaking memory with mongrel but not lighty/fcgi. I have been doing anything I can to track it down. I already did the Mutex patch to use unshitf and pop instead of shift and push and it didn''t really help much. The mem leak only really shows up when you use the wsess option to httperf. The other day I saw a ruby C extension that
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
Hi there, I''ve been digging around trying to find some information (mostly examples) on how one would handle a progress bar upload using BackgrounDRb and File Column. I did read http://backgroundrb.rubyforge.org/ and Ezra''s blog of course, but I still have a few questions. I made a simple upload form (as a test) that is submitted to the "upload_song" action. def
2006 Aug 06
3
Debugging a worker?
If there is an exception raised in my worker I rescue it and throw it into the log. This is decent, but it would really help to find out more information. Like the line number, the stack trace, etc. Is this possible? Thanks for your help. Thank You, Ben Johnson E: bjohnson at contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 02
3
Writing tests for plugins
I''ve been googling around trying to find some tips on creating tests for plugins. Am I correct in assuming that I''d have to have the tests as part of a rails app in order to test the plugin? I''d like to find a way to do standalone tests for the plugin. -- Posted via http://www.ruby-forum.com/.