Displaying 3 results from an estimated 3 matches for "other_control".
2008 Aug 15
7
Autotest and subclasses / namespaces
I am writing a controller admin/cities_controller.rb
it inherits from AdminController, so it''s defined like
class Admin::CitiesController > AdminController
Whenever I save the controller file, autotest freaks out:
uninitialized constant Admin::AdminController (NameError)
I''m pretty used to just hitting CTRL-C to get autotest to re-load all
the files, or flicking to
2006 Jun 21
4
Simple Subdomain Routing
Hey all,
I hope this is a relitively simple question, but I have not been able to
arrive at a workable solution for myself.
What I''m wanting to do is a very simple pattern match on a subdomain:
www.* forwards to mydomain.com/www_controller
and everything else forwards to mydomain.com/other_controller
The idea is to forward logged in users to username.mydomain.com, but all
the user''s data is stored in a session, so, it doesn''t need to actually
do any database lookups or anything like that based on the subdomain,
only a routing request.
Thanks in advance!
-Luke
--
Post...
2006 Nov 17
3
Is this the "right way"?
The site I''m currently designing doesn''t have a db back end. So I''m
using rails primarily for templating and some scripting.
I approached this by creating a controller called ''main'' and various
views like "index", "welcome", "about", etc.
But then I''d get URL''s like www.mydomain.com/main/welcome when I