subdomain-fu

Getting Cucumber & Subdomain-fu to play nice together

Hi all, I've recently started using Cucumber & Subdomain-fu together, and it's made me do some terrible things. I have a step definition that used to look like this: path = grok_path(path) get path That's nice and easy, in my opinion. But now it's this: path = grok_path(path) get "http://#{subdomain}.example.com#{path}" This wor...

Cucumber/webrat test fails after adding Subdomain-fu and redirection functionality

I added Subdomain-fu in my project. In ApplicationController I have before_filter which checks url and redirects app.com to www.app.com, www.subdomain.app.com to subdomain.app.com and checks account existence (redirects to home if not exists): before_filter :check_uri def check_uri if !subdomain? redirect_to http...

subdomain and domain routing

Hi all, I use the subdomain to indicate the product eg. nexusphone.site.com . When a user types in that url I render the product/show view of that product. Users can also use domainnames eg www.nexusphone or nexusphone.com to render that product/show view. www.site.com or site.com should render the home view which explains what my site...

Problem with sessions, subdomains and authlogic in Rails.

I've got a rails app with authlogic authentication and a username.domain.com structure built with subdomain-fu. But my session breaks when going from domain.com to username.domain.com. I've tried to add config.action_controller.session = {:domain => '.localhost:3000'} to my development.rb but that seams to break authlogic disabling s...

Rails Subdomain Model-Based

Dears, In My Rails Project i'm using subdomain_fu for subdomain support. but i was looking for the Model-Based Subdomain support in subdomain_fu as in my application 2 models have subdomain fields. and i would like to route the application according to the subdomain specified as check the subdomain is related to which model and start r...

How to create a rails staging environment in engineyard?

I have a production instance in engineyard up and running well. I would like to create a new staging instance for internal testing. I cloned the existing production instance, changed Framework Environment to staging. I can deploy all the code to staging instance from Github. Engineyard reported the server is fully configured and ready. ...

Setting up Subdomain-Fu in Production Environment?

I'm using the popular subdomain-fu for subdomain functionality in my Rails app. I've watched the Railscast and read everything I could find through google. In the dev environment, you need to manually add the available subdomains to the /etc/hosts file. I get that. But how does this work in production? This seems to be considered ...

I have multiple accounts each its own users, and want the users email address to only be unique per account

Hi, I am using rails to build a web app which provides each business with its own account and subdomain, Similar to how basecamp (and other 37 signals apps) lighthouseapp.com, and so on. Now I know that there are lots of decent tutorials on how to do subdomains in rails, and even the subdomain-fu plugin. The thing is that I want to us...