![](/img/trans.png)
[英]subdomain-fu not working in rails 4
在我的gem文件中,我添加了'subdomain-fu', '1.0.0.beta2' 。 然后我做了bundle install 。 我嘗試打印<%= current_subdomain%>,但是得到了undefined local variable or method cur ...
[英]subdomain-fu not working in rails 4
在我的gem文件中,我添加了'subdomain-fu', '1.0.0.beta2' 。 然后我做了bundle install 。 我嘗試打印<%= current_subdomain%>,但是得到了undefined local variable or method cur ...
[英]subdomain-fu gem tld_size
subdomain-fu gem中的tld_size是什么意思。 例如聾子有, 在我的初始值設定項/subdomain-fu.rb中 ...
[英]How to get subdomain fu working in development on my local machine
我使用子域fu克隆了一個github存儲庫,但似乎無法正確加載該網站。 我總是得到相同的錯誤: 我嘗試了signin.localhost.local:3000,它似乎在使登錄/注冊頁面正常工作。 但是,當我登錄時(從signin.localhost.local:3000),它像前面那樣 ...
[英]Mapping domain.com/user/1 to domain.com/loginName
在使用subdomain-fu將domain.com/user/1更改為domain.com/UserName之前,有人嘗試過嗎? 還有其他插件可以使它在Rails 3上發生嗎? ...
[英]I have multiple accounts each its own users, and want the users email address to only be unique per account
我正在使用Rails構建一個Web應用程序,為每個企業提供自己的帳戶和子域,類似於basecamp(以及其他37個信號應用程序)lighthouseapp.com的運行方式,等等。 現在,我知道有很多不錯的教程,介紹了如何在Rails中創建子域,甚至還有subdomain-fu插件。 ...
[英]Setting up Subdomain-Fu in Production Environment?
我在Rails應用程序中使用流行的subdomain-fu來實現子域功能。 我已經看過Railscast並閱讀了我可以通過google找到的所有內容。 在開發環境中,您需要手動將可用的子域添加到/ etc / hosts文件中。 我明白了。 但是,這在生產中如何工作? 這似乎被認為 ...
[英]How to create a rails staging environment in engineyard?
我在機艙中有一個生產實例,運轉良好。 我想為內部測試創建一個新的暫存實例。 我克隆了現有的生產實例,將Framework Environment更改為暫存。 我可以將所有代碼從Github部署到登台實例。 Engineyard報告服務器已完全配置並准備就緒。 我的Rails應用程序 ...
[英]Rails Subdomain Model-Based
在My Rails Project中,我使用subdomain_fu獲得子域支持。 但是我一直在subdomain_fu中尋找基於模型的子域支持,因為在我的應用程序中2模型具有子域字段。 我想根據指定的子域來路由應用程序,如檢查該子域與哪個模型有關,並開始將其表示為rails路由。 問 ...
[英]Problem with sessions, subdomains and authlogic in Rails
我有一個帶有authlogic身份驗證的rails應用程序和一個用subdomain-fu構建的username.domain.com結構。 但是當我從domain.com轉到username.domain.com時,我的會話中斷了。 我試過補充一下 到我的development ...
[英]subdomain and domain routing
我使用子域名來表示產品,例如。 nexusphone.site.com。 當用戶鍵入該URL時,我將呈現該產品的產品/展示視圖。 用戶還可以使用域名(例如www.nexusphone或nexusphone.com)來呈現該產品/展示視圖。 www.site.com或site.com應 ...
[英]Cucumber/webrat test fails after adding Subdomain-fu and redirection functionality
我在項目中添加了Subdomain-fu。 在ApplicationController中,我具有before_filter,它檢查url並將app.com重定向到www.app.com,將www.subdomain.app.com重定向到subdomain.app.com並檢查帳戶的存在(如 ...
[英]Getting Cucumber & Subdomain-fu to play nice together
我最近開始一起使用Cucumber和Subdomain-fu,這讓我做了一些可怕的事情。 我有一個步驟定義,看起來像這樣: 在我看來,這很好,很容易。 但現在是這樣的: 這有效 ,但它並不完全干凈。 有什么更好的方法呢? ...