Different Method for Subdomains (ActionController::AbstractRequest)
@jamesYou can also access the subdomain via the subdomains array.request.subdomains.first
View ArticleCurrent Database Name (ActiveRecord::Base#connection)
The MySQL database adapter extends this and allows you to callActiveRecord::Base.connection.current_databaseto get the current databases name. Useful when you are actively changing the database you are...
View ArticleCurrent Database Name (ActiveRecord::Base#connection)
The MySQL database adapter extends this and allows you to callActiveRecord::Base.connection.current_databaseto get the current databases name. Useful when you are actively changing the database you are...
View Article
More Pages to Explore .....