Displaying 20 results from an estimated 5000 matches similar to: "Why use a Subdomain?"
2006 Mar 25
1
routes mapping, subdomains and page-caching
Each of its own is no problem, but the combination of them is confusing my
head !
I want to to map in routes.rb an url for an article which is identified by
its permalink. The permalink is unique per subdomain.
Has anybody done that and can post an example ?
Should I do subdomain filtering in routes.rb so I can get page-cachabled
URLs (and URL rewriting in Lighttpd form subdomain-urls to
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/.
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
2006 Mar 31
5
Changing Table Schema and Models
If I make a change to a database table, how do I recreate the model to
reflect the change?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 31
18
Modelling Foreign Keys
Can someone point me to a reference or tutorial that shows how to map
foreign key relationships in the model?
For example given:
Users
id
name
email
Posts
id
user_id
title
How do I associate user_id with users.id in the Post and User models?
has_many and belongs_to don''t seem to do it.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 09
2
Virtualhost, Alias & Subdomains
I am having a problem with subdomains, alias & virtual hosts
Centos 4.3, Apache 2.0.52 & PHP 5.04
I can get the primary to work, but not the aliased servers.
http.conf extract
*********
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
DocumentRoot /var/www/html/domain/
ServerAlias www.altdomain.com <http://www.altdomain.com>
</VirtualHost>
<VirtualHost
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,
2006 Apr 04
2
Syntax Error in find()
Maybe I misunderstand the parameterization of find(), I am getting this
syntax error for
<% @choices = Choic
e.find(:all, :conditions => "question_id" = question.id, :order =>
"order") %>
---- ERROR LOG ----
ActionView::TemplateError (compile error
../config/../app/views/admin/test/show.rhtml:37: syntax error
_erbout.concat " "; @choices =
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
2011 Oct 27
1
creating subdomains
HI All,
I surfed a lot , googled a lot , read/watched railscasts but could not get
the solution.
Below is my problem.
1) I wanted a parent domain www.xyz.com. This parent domain will have two
subdomains abc.xyz.com and def.xyz.com.
The parent domain will have a admin user who has capability to create/manage
subdomains.
The subdomains should an a siteadmin user who can edit the site
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
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
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 Feb 06
1
Two subdomains with diferent controllers but same helpers and components
Hi,
I want to have www.myproduct.com and myclient1.myproduct.com working on same
server.
I would like to have different controller in wich subdomains, example:
on www I want to have sgnup and prices controller and on myclient subdomain I
want login, settings, etc...
I can open two environments
rails www
rails clients
or point the two subdomains to same environment
rails myproduct
Wich is
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 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
2009 Dec 16
5
Caching comments: timestamps and subdomains
Hi,
I''m working on a website that has a very slow loading frontpage. I
wanted to start by caching certain elements that have high load. For
example, it loads the last 50 comments, along with the corresponding
usernames, avatars and more. So I cached that fragment and created a
sweeper that observes Comment and expires after every create or
destroy action.
However, I have two problems:
2017 Nov 14
1
Join a subdomain DC to a domain DC
>
> If your main domain is 'example.com' and you use 'ad.example.com' as a
>
> dns subdomain of 'example.com', the Samba DC would be authoritative
>
> for 'ad.example.com', the AD clients would use the DC as their
>
> nameserver for the domain and anything unknown by the DC (google for
>
> instance, or anything in the
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 Aug 18
2
subdomains with Rails
Hi.
I want to add subdomains like this:
Example: http://shirts.myshopify.com , http://computers.myshopify.com
Is it something you can do while still in development mode or do you
wait until you deploy and configure the subdomain names with your host
somehow?
Can you help direct me in the right way to do this?
--
Posted via http://www.ruby-forum.com/.