similar to: Displaying based on hostname/subdomain

Displaying 20 results from an estimated 1200 matches similar to: "Displaying based on hostname/subdomain"

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 26
3
Specing with Subdomains as Account Keys
How do you go about implementing and rspecing subdomains as account keys? I''m sure that this must be an issues for others as well. So I have an app using subdomains as account keys. The Application Controller sets up @current_company in a before filter. Everything is done within the context of the @current_company. After reading about Demeter''s Revenge
2006 Jul 09
0
account_location couple of questions.
Hi I''m having a look at the account_location plugin for a project and there''s a couple of things i''m not sure on. One is what the default_account_subdomain method does. def default_account_subdomain @account.username if @account && @account.respond_to?(:username) end What is this used for? Can anyone provide an example of it''s usage please?
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/.
2006 Mar 31
3
Why use a Subdomain?
New to Ruby on Rails. I''ve been playing around with an application I set up at rails.foo.com. Basically this means that all my pages tied to the application live on that subdomain. Is there any reason for not just installing onto your parent domain foo.com and putting your static pages in the public dir that ruby on rails creates? The answer seems like a simple yes, however all the
2017 Nov 14
4
Join a subdomain DC to a domain DC
Hello guys, I work at an institution where the domain is institute.edu.br. We have a main dns that answers for the internal and external services that we have. Firstly the staff here configured samba as domain institute.edu.br, but this way it is conflicting in the resolution of internal and external service names, since samba wants to respond for all requests and, even inserting a forward zone,
2017 Nov 14
2
Join a subdomain DC to a domain DC
> > Does nobody read the Samba wiki ??? > What??? Samba has a wiki ??? *Bazinga *:D As far as I am aware, AD subdomains do not work correctly with Samba AD. > > What you have done with the new DC, is what you should have done in the > > first place, created a subdomain of your main dns domain and used this > > for the AD dns domain and realm. > > I started in
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
2011 Nov 28
4
getting a subdomain name in model.
Hi all, I am facing problem in getting subdomain name inside the model. The following is my setup. I am using cancan for authorization.I wanted a specific condition in Ability.rb ( the file which is placed in models if we install cancan gem). Below is the condition I wanted: ========================================================= user ||= User.new # guest user (not logged in) if
2008 Mar 05
14
[Stories] Login and subdomain
I''ve just begin using rspec stories, and i m encountering some problems. In my application i have different subdomains in which specific users can log in, for example an admin will go to admin.myapp.com/authenticate/login, and an user belonging to a specific company will log in company.myapp.com/authenticate/login, and of course both have a different login process. To perform some
2006 Apr 26
2
application failed to start for subdomain
I recently setup a subdomain to run my app as a staging site before pushing changes to the main site. So i setup a subdomain in cpanel, symlinked that the directory to point to a staging directory where i check''d out my rails app. However, when i go to staging.railsapp.com, it times out and says application failed to start properly. I''m not sure what is causing this, but
2006 Jun 21
4
Simple Subdomain Routing
Hey all, I hope this is a relitively simple question, but I have not been able to arrive at a workable solution for myself. What I''m wanting to do is a very simple pattern match on a subdomain: www.* forwards to mydomain.com/www_controller and everything else forwards to mydomain.com/other_controller The idea is to forward logged in users to username.mydomain.com, but all the
2006 Jan 18
2
How do you get link_to to work correctly when using subdomains as account keys?
When using subdomains as account keys (as per this HowTo: http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys), how can you get link_to to spit out the correct URL (i.e. account123.domain.com)? <%= link_to "My Account", { :action => "show", :id => "account123" } %> would generate "http://www.domain.com/show/account123" I
2010 Aug 16
1
Subdomain Migration
On 8/16/2010 3:44 AM, ramesh wrote: > Hi All, > > I would like have suggestion for changing subdomain (belongs to ISP) to own domain, the scenario as below. > > Presently we have subdomain from ISP ( @xxx.isp.net) > email id : ramesh at xxx.isp.net > > ISP charges huge amount,thou others ISP charges less. so we have planned to migrate to our own registered domain and
2016 Nov 01
1
Samba-tool SUBDOMAIN Problem
Hi, i have setted up a DC ESC.LAN, if i try to do "samba-tool domain join MUNICH.ESC.LAN SUBDOMAIN -Uadministrator" i get the following error, how can i build up a AD Subdomain (Domain Tree) [root at MUC-PDC ~]# samba-tool domain join MUNICH.ESC.LAN SUBDOMAIN -Uadministrator Administrator password will be set randomly! Finding a writeable DC for domain 'ESC.LAN' Found DC
2011 Jun 09
1
subdomain based namespacing makes RSpec incorrectly state that the route doesn't exist
Hello, I''m doing namespace routing based on subdomain, rather than path, so that http://admin.example.com/pages leads to app/controllers/admin/ pages_controller.rb. Cucumber is following this fine, but RSpec is complaining that the requested route doesn''t exist even though "rake routes" shows the route. When I add a standard namespace below the "scope :admin"
2006 Apr 04
1
subdomain routing
According to the wiki (http://wiki.rubyonrails.org/rails/pages/Routes) you can handle subdomain routing in routes.rb. Like this: with_options :requirements=>{:subdomain=>''first.com''} do map.connect '''', :controller => "first/catalog" map.connect ''featured'', :controller => "first/catalog",
2007 Jan 16
4
Subdomain Account Keys Best Practice
Hi all, I''m thinking of useing sub-domains as account keys, something I''ve played with previously. I have accounts and users, fairly standard, except that users can belong to many accounts, and accounts can have many users. So I figure I need to have an area on the main domain, that allows users to view their account memberships and things. Sort of like a dashboard for each
2017 Nov 15
2
Join a subdomain DC to a domain DC
Thanks for the feedback too Andrew!!! I will analyze and verify the least impactful way to try to solve this problem. On Wed, Nov 15, 2017 at 4:25 PM, Andrew Bartlett <abartlet at samba.org> wrote: > On Tue, 2017-11-14 at 16:05 -0200, Elias Pereira via samba wrote: > > Hello guys, > > > > I work at an institution where the domain is institute.edu.br. We have a >
2010 Jun 24
1
Custom account subdomains with Rails 3
Hi, I needed to handle custom account subdomains with Rails and I wrote a simple rack middleware for that http://github.com/drogus/rack-subdomain. It works by mapping any subdomain to given PATH. For example when user hits drogus.example.org/account and mapping is /users/:subdomain, it will map the request to example.org/users/drogus/account I accomplished it with rack middleware, cause I wanted