Top Level Namespace
Defined Under Namespace
Modules: Cuca Classes: ARFormWidget, ARViewWidget, BaseList, CGI, CGIEmu, DBListWidget, FormErrorsWidget, FormWidget, LinkWidget, QueryDef, SLinkWidget, StaticDataListWidget
Constant Summary collapse
- BASE =
'/home/bones/src/cuca/app'
- URL =
'user/martin/somewhere/notexist/'
Instance Method Summary collapse
- #cuca_register_autoload(object, file) ⇒ Object
-
#init_save_require(filename) ⇒ Object
To require config and environment.
- #url(some_path) ⇒ Object
Instance Method Details
#cuca_register_autoload(object, file) ⇒ Object
5 6 7 |
# File 'lib/cuca/app.rb', line 5 def cuca_register_autoload(object, file) autoload(object, file) end |
#init_save_require(filename) ⇒ Object
To require config and environment
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/cuca.rb', line 49 def init_save_require(filename) begin require filename rescue => e title = "INIT Error [#{filename}]: #{e}" $stderr.puts title err = '' e.backtrace.each do |b| err << " #{b}\n" end $stderr.puts err c = CGI.new c.out { "<b>#{title}<br><br>#{err.gsub(/\n/,'<br>')}" } end end |