similar to: subdomains with Rails

Displaying 20 results from an estimated 2000 matches similar to: "subdomains with Rails"

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
2006 May 25
2
basecamp prefixes
basecamp prefixes each url with a client name... client1.updatelog.com/todos client2.updatelog.com/milestones any ideas on how this is done? - one app? - one app per client? - one app per domain? -- Posted via http://www.ruby-forum.com/.
2005 Dec 30
2
Setting up Subdomains as Account Keys Under Mac OS X
I''m trying to configure my Rails app to use the subdomain as the account key. I''ve followed along with the HowTo [1], but under Mac OS X (10.4.3) I cannot get sub.domain.mine to map to 127.0.0.1. I''ve modified /etc/hosts as explained in "Dynamic Vhosts Working" [2], but I do not want to use Apache ... I''m using Webrick for development. Since this is
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
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
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 Mar 22
0
Subdomains as account keys and domain pointers
Hi, I have sucessfully implemented a "subdomain as account keys" following the notes in here http://wiki.rubyonrails.com/rails/pages/HowToUseSubdomainsAsAccountKeys. I want to know if this would still work for domain pointers. For example, I now have the URL greg.domains.com to access my Rails app. Then later, I decided to buy a new domain, www.greg.com. Can I just point
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,
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
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:
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
2007 Feb 06
8
setting enviroment variable
I have a ror project which has been productized. There are several web sites in one ror project I need to set an "enviroment variable" to run different sites, can I do that using mongrel? I tried to use mongrel''s -S option and set the enviroment variable in that file but it seems mongrel runs that file after it calls enviroment.rb I also used apache''s
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 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