Displaying 6 results from an estimated 6 matches for "cache_templ".
2007 Feb 15
1
wrong startup information in production environment
...===============================================
dev:/var/www/apps/upload_merb/current/log# /etc/init.d/merb_init start
Merb started with these options:
---
:template_ext:
:html: :herb
:js: :jerb
:xml: :xerb
:config: dist/conf/upload.conf
:drb_server_port: 32323
:sql_session: true
:cluster: 2
:cache_templates: false
:host: 127.0.0.1
:port: "6000"
:allow_reloading: true
:start_drb: true
:merb_root: /var/www/apps/upload_merb/current
:merb_config: /var/www/apps/upload_merb/current/dist/conf/merb.yml
:environment: production
Starting merb drb server on port: 32323
Starting merb server on por...
2007 May 14
7
Help a newb with 0.3.1
...install the haml gem to use .haml templates
ActiveRecord session mixed in
Rails session compatibilty on.
Compiling routes..
merb init called
Merb started with these options:
---
:dist_root: /path/to/merb/mrblog/dist
:allow_reloading: true
:environment: development
:merb_root: /path/to/merb/mrblog
:cache_templates: true
:use_mutex: true
:config: dist/conf/mup.conf
:host: 127.0.0.1
:show_error: true
:port: "4000"
:sql_session: true
However any request to 127.0.0.1:4000 returns:
Mon May 14 17:55:30 BST 2007: ERROR: undefined method `each'' for
#<MerbUploadHandler:0x234bcfc>
wi...
2007 May 12
0
HAML?
Is anyone developing with HAML templates in Merb?
I had to do a few hacks but got it generally working (Merb trunk). I
did have to do odd things like print @_layout_content straight out
instead of calling catch_content(:layout). And, templates seem to be
cached even if I set :cache_templates to false in merb.yml.
I hope to be at the MerbHack night at RailsConf and would love to hack
on this part of Merb with anyone else who is interested.
--
Geoffrey Grosenbach
boss at topfunky.com
........................
Blog | http://nubyonrails.com
Podcast | http://podcast.rubyonrails.com
Sc...
2008 Mar 16
0
Merb Init Problems
...'s root, It starts, compiles the routes and then exits. Any ideas???
This is a brand spanking new merb app:
josh at JDS-MacBook:~/Projects/schmerb$ merb
Merb started with these options:
---
:exception_details: true
:host: 0.0.0.0
:mongrel_x_sendfile: true
:reloader: true
:reloader_time: 0.5
:cache_templates: false
:session_secret_key: /USERS/JOSH/PROJECTS/SCHMERB8520
:use_mutex: true
:merb_root: /Users/josh/Projects/schmerb
:session_id_cookie_only: true
:port: "4000"
:query_string_whitelist: []
:environment: development
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.3/lib/merb/version.rb:4...
2007 Dec 13
2
Trying to use ActiveRecord STI but fails
...belongs_to :observation_type
end
4. I ran rake freeze_from_svn
5. I start merb using script/merb and stdout/stderr look like this:
$ script/merb
Merb started with these options:
---
:exception_details: true
:reloader: true
:session_secret_key: .6393
:mongrel_x_sendfile: true
:reloader_time: 0.5
:cache_templates: false
:merb_root: /home/francois/src/florian-opsdb/trunk/amara
:use_mutex: true
:host: 127.0.0.1
:session_id_cookie_only: true
:environment: development
:port: "4000"
:query_string_whitelist: []
Started merb_init.rb ...
Connecting to database...
Thu, 13 Dec 2007 03:22:38 GMT: loadi...
2007 Sep 04
11
returning(...) ?
...vision 508)
+++ lib/merb/template/erubis.rb (working copy)
@@ -40,12 +40,12 @@
return @@erbs[path]
else
begin
- returning ::Erubis::MEruby.new(IO.read(path)) do |eruby|
- eruby.init_evaluator :filename => path
- if cache_template?(path)
- @@erbs[path], @@mtimes[path] = eruby, Time.now
- end
- end
+ eruby = ::Erubis::MEruby.new(IO.read(path))
+ eruby.init_evaluator :filename => path
+ if cache_template?(path)
+ @@erbs[p...