Displaying 20 results from an estimated 3000 matches similar to: "Custom account subdomains with Rails 3"
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
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 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
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
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
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 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/.
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 Feb 04
2
Differentiating between normal site content and accounts with subdomains
I''m using the subdomains as accounts method fine on a project, but
I''m wondering what is the best way to differentiate between account
subdomains to access the app using an account, and www.domain.com and
domain.com in order to show normal site content.
I''ve noticed that on Backpack, it seems that when you leave the
information pages and start using the app,
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
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:
2010 May 28
0
dynamically generating subdomains using subdomain-fu
hi,
I am using subdomain-fu for creating subdomains . My doubt is how
can we give the subdomains in the etc/hosts ,when the sub-domains are
dynamicallybeing created.
Ex: i created a subdomain called "user1" and i specified this in etc/
hosts file.So eveery time i cant specify the subdomain which is being
created.So can i ovecome this problem.
--
You received this message because
2005 Mar 02
1
using subdomains as account keys
I finally managed to use subdomains as account keys, just as in
tadalist.
Now I have an "account" variable in all my controllers, and was thinking
about what implications I''m going to have on security, because the
accounts table contains all account crypted passwords (of course).
Is it secure or not ?
David ? :)
--
checking for life_signs in -lKenny... no
Oh my god, make (1)
2009 Jul 02
2
Big help with shared subdomains cookies
Hi, i need that all the subdomains of an app (using subdomain_fu) use
''.domain.com'' as domain for all cookies.
I''ve set ActionController::Base.session_options[:domain] = ''.domain.com''
and it works...for just the session... how can i set this also for
common cookies ? (created with cookies[:name] = {:value => value,
:expires => 6.months.from_now} )
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to
login if a different subdomain is accessed. I have found a couple rails
"solutions", but none of them seem to work:
# development.rb
1. ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key]
= ".localhost"
2. ActionController::Base.session_options[:key] = ".localhost"
Does anyone
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
2007 Mar 31
1
Subdomains, Routing, and Subdirectory Controllers
For reference, this question is similar to "Subdomains, Session Data,
& Routing" posted Oct. 31, 2006. Link:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/d3c5072c3588a1e0/f87d0fdfded31650
----
I would like to set up a subdomain and, using the request_routing
plugin, have requests to that subdomain call corresponding "sub-
controllers" inside a
2006 Aug 17
2
mod_proxy and subdomains..
hi, everyone..
i am trying to set up an app like so:
www.domain.com -> points to main php application..
subdomain.domain.com -> proxies to www.domain.com:8000 <- this is
running on mongrel..
i just cannot figure out how to phrase this in my httpd.conf...
does anyone have any ideas?
thanks!
--
Posted via http://www.ruby-forum.com/.
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/.
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