search for: newrails

Displaying 4 results from an estimated 4 matches for "newrails".

2011 Nov 05
13
Adding a site admin user while creating a site
Hi Gurus, I wanted to add siteadmin user(basically a user with a certain role) while creating the site itself. I hope that i have done all the necessary stuff by going through raynb''s railscasts ( http://railscasts.com/episodes/196-nested-model-form-part-1) But could not see user fields being displayed in the site creation form.. Below are the details. I Have two model users and
2011 Nov 28
4
getting a subdomain name in model.
Hi all, I am facing problem in getting subdomain name inside the model. The following is my setup. I am using cancan for authorization.I wanted a specific condition in Ability.rb ( the file which is placed in models if we install cancan gem). Below is the condition I wanted: ========================================================= user ||= User.new # guest user (not logged in) if
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
2011 Oct 21
3
multi site with RoR
HI All,, I have just installed rails. Also I have installed spree,spree-multi- domains gems. I could run the sample spree app but on the admin of spree could not find facility to add multi domains, I have googled but could not find how to create multi domains using rails or spree. If there are any ruby gems to achieve or any other way please let me know. Below is what I wanted exactly 1) A