Displaying 3 results from an estimated 3 matches for "othercontroller".
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
2007 Oct 21
8
Interesting shared behaviour side-effect
...describe ApplicationController, :shared => true do
it_should_behave_like ''ApplicationController one facet''
it_should_behave_like ''ApplicationController some other facet''
end
And corresponding ApplicationController subclass specs:
describe OtherController do
it_should_behave_like ''ApplicationController''
end
Both of the shared behaviour blocks get executed twice when running
the subclass specs; the specdoc output looks like:
OtherController
- foo
- bar
- abc
- xyz
- abc
- xyz
- foo
- bar
And n...
2005 Nov 03
9
[Idea] session-wide persistent variables
...fa.rhtml with anchor link to action beta
end
def beta
render :text => ''Person: '' + person
end
end
This would have scope of hosting controller, but it could be broaden to
other controllers like with
persistent_attr :person,
:scope => [OtherController, AnotherController]
Just thinking little louder...
--
Kamil (aka Gunnie)
Czech Rep.