search for: xerb

Displaying 6 results from an estimated 6 matches for "xerb".

Did you mean: verb
2007 Sep 29
1
templates with same name before extension are cached
Hi all, I was just wondering if this is the intended behavior. Here is my setup: controller def index respond_to do |f| f.xml { render :xml => true } f.html { render :layout => :none } end end In my views I have a file for each type index.herb index.xerb The first request I send is cached and interferes with the other one. For example, if I send an xml request first, followed by html, here is what I see (those are just some debug statements I put in to follow the code) Request 1 "Accept: text/xml" - "starting find_template, option...
2007 Sep 04
5
Xml templates...
I was looking in using an xml_builder template to do something like: blee.xerb xml.blees do <% for blee in @blees %> xml.blee = blee.name <% end %> end It looks like the xml_builder template can''t expand the erb tag. It this not the correct way to expand and xml template ? Thanks ! -------------- next part -------------- An HTML attachment wa...
2007 Sep 04
1
Couple of questions for Merb 0.4
...ller don''t seem to get picked up on new requests. Also say I have a controller that needs to render an alternate xml format ie something like: respond_to do |fmt| fmt.xml => { render :xml => true, :action => ''fred'' } end where in fred.xerb I have xml.blee do xml.fred some_val ... end When I tried to run the following code I am getting a merb error on engine.transform where engine is nil ? undefined method `transform'' for nil:NilClass - (NoMethodError) /usr/local/lib/ruby/gems/1.8/gems/merb-0.4.0/lib/merb/m...
2007 Jan 03
2
Using helpers...
All, I am getting an undefined method exception while trying to use a helper method in a xerb file. I am running version 0.0.8 module Merb module FredHelper def blee( args ) .... end end end In the xerb template I have xml.bobo blee( args ) At runtime I am getting undefined method ''blee'' I tryied mov...
2007 Feb 15
1
wrong startup information in production environment
...b repository. And the startup information for production environment just like that: ====================================================== 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...
2007 Aug 29
11
Non-Erubis Templates
Trunk Issue: Because of the use of ''autoload'', template handlers other than Erubis are not loaded automatically (Haml, XMLBuilder). Either this should be fixed, or the documentation should be updated to instruct people how to use non-Erb template engines. Apparently the solution is to do something like this in merb_init.rb: ::Merb::AbstractController.register_engine