Jim,
Thanks for the reply. Yes running 0.8.0 production on my developer
machine.Below are my pasties for errors covering several different
flavors.
Code below first require: http://pastie.org/516665
Code above: http://pastie.org/516878
Code with require commented out: http://pastie.org/516881
-Daniel
On Jun 18, 2009, at 10:37 AM, Jim Gay wrote:
Hmm.
This should work in any name_extension.rb
If you are running Radiant 0.8.0 the first require will work. If you
are running 0.7.1 the first should fail with a MissingSourceFile
exception and then try the second require.
Unless I've only run into this in my setup and something different
happens with a different setup.
Can you pastie any error messages?
Jim Gay
http://www.saturnflyer.com
On Jun 18, 2009, at 12:27 PM, Daniel O'Connell wrote:
Jim and anyone else that can answer,
Could you please walk me through the steps to using this in an
extension in a production environment:
<pre>
begin
require_dependency 'application_controller'
rescue MissingSourceFile
require_dependency 'application'
end
</pre>
This is what I have already tried in copy_move ( which only
required 'application_controller' ).
Adding at the beginning of file, restart server.
Adding at the beginning of file, commenting out <require_dependency
'application_controller'> restart server.
Each time the mongrel server failed to start, giving various errors.
Thanks in advance,
-Daniel
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant