Displaying 2 results from an estimated 2 matches for "xyzcontroller".
2006 Apr 24
7
Controller can''t find helper?????!!!!!????
I have a controller named xyzController under app/controllers
I have a helper class named xyzHelper under app/helpers.
Shouldn''t I be able to call methods from xyzHelper inside of
xyzController without any problems?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Feb 27
5
Database connections...so many connections!
...the WIKI that had details of multiple database
connections
(http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases), I
moved the code from the application controller into each controller (as
I thought it was prettier / easier / simpler ) . In each controller is
the following code:
class XYZController < ApplicationController
before_filter :change_database
def change_database
ActiveRecord::Base.establish_connection(
:adapter => "oci",
:database => "",
:host => "******",
:username => "******", # Differs between co...