Questions tagged [subdomain-fu]

12 questions
3
votes
2 answers

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

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…
Rails Fan
  • 121
  • 1
  • 12
3
votes
3 answers

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 =>…
Alfred
  • 7,071
  • 4
  • 27
  • 35
2
votes
1 answer

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…
Victor Lam
  • 3,646
  • 8
  • 31
  • 43
1
vote
2 answers

subdomain-fu not working in rails 4

In my gem file i have added gem 'subdomain-fu', '1.0.0.beta2' . Then I did bundle install. I tried to print <%= current_subdomain %> but I got undefined local variable or methodcurrent_subdomain'` . Why am I getting this error? I have also…
Raaz
  • 1,669
  • 2
  • 24
  • 48
1
vote
2 answers

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…
MikeH
  • 866
  • 1
  • 14
  • 26
1
vote
2 answers

subdomain and domain routing

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…
Tarscher
  • 1,923
  • 1
  • 22
  • 45
1
vote
2 answers

Getting Cucumber & Subdomain-fu to play nice together

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…
Matt Grande
  • 11,964
  • 6
  • 62
  • 89
0
votes
2 answers

How to get subdomain fu working in development on my local machine

I cloned a github repo using subdomain fu but I can't seem to get the site to load properly. I always get the same error: I tried signin.localhost.local:3000, which seems to be working to get the signin/signup pages working. However, when I go to…
Matthew Berman
  • 8,481
  • 10
  • 49
  • 98
0
votes
0 answers

one sub domain is working but simliar content subdmain in different IP is not working

Contents are similar in both subdomains. But one domain is working but the other is not working. Apache host files. merchant.clouspos.lk (This is working) # The ServerName directive sets the request scheme, hostname and…
Eranda Peiris
  • 165
  • 2
  • 15
0
votes
2 answers

Mapping domain.com/user/1 to domain.com/loginName

Has anyone tried before using subdomain-fu to change domain.com/user/1 to domain.com/UserName ? Are there any other plugins to make this happen on rails 3?
akk
  • 7
  • 1
0
votes
1 answer

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): …
Voldy
  • 12,829
  • 8
  • 51
  • 67
0
votes
1 answer

subdomain-fu gem tld_size

What does it mean the tld_size in the subdomain-fu gem. for example deafult am having, SubdomainFu.tld_sizes = {:development => 1, :test => 0, :production => 1} in my initializers/subdomain-fu.rb