Displaying 20 results from an estimated 1000 matches similar to: "Xml templates..."
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
2007 Sep 04
1
Couple of questions for Merb 0.4
All,
I have just updated to the latest release of merb 0.4 and I am
wondering how I can get my controller changes
to reload without bouncing the server ? I am running in dev mode
but my changes to my merb controller 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:
2007 Jan 12
5
Rails session parasite...
All,
I see this item on the merb-0.0.8 release notes
Added rails session parasite mode.
I am assuming merbs can piggy back off the rails current session.
How does one achieve that ?
Thanks
Fernand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070112/0803f46e/attachment.html
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
2007 Sep 05
5
Reloading ??
All,
So I got passed my initial hurdles with merb 0.4. And all seems to work
very nicely.
Thank you all for your help !
One thing though, why should I have to bounce the merb server when I
change
my controller or associated classes ? Am I missing something ?
I am having flash back to my java days where I now have to reflect on
what changed
and bounce the server accordingly...
2006 Dec 23
1
Generating a merb app skeleton...
I have just started playing with merb. I think this framework has great
potential
so ATTA BOYS are in order !!
Perhaps I missed something in the readme file, but how do I generate a
default
app in merb.
I was looking for something like the cmd below to generate the app
hierarchy ??
> merb myapp
-Fernand
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Jan 02
1
Caching...
Hi,
I am just starting playing with merb and was wondering if there is any
caching
strategy available. I was planning on using the action caching plugin but
I am
quiet sure what is the merb plan with dealing with plugins...
Any idea or suggestions ?
Regards,
Fernand
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Dec 19
3
Trapping custom exceptions in merb 0.5.0
Hi,
I have the following setup:
class Fred < Application
class InvalidKey < Merb::ControllerExceptions::Unauthorized; end
def blee
raise InvalidKey unless key
end
end
I have added a view exception template in
views/exceptions/invalid_key.html.erb
but I am not seeing the exception page being rendered ?? The request
seems to correctly
go to
2007 Jan 03
1
Specifying load path...
All,
How can I specify a load path in merb ? I have some classes in a lib
directory that needs
to be in the load path. Not sure how to accomplish that with merb....
Thanks,
Fernand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070103/2c960f36/attachment.html
2006 Aug 23
3
Auto-Reload...
Hi,
Not sure if this was posted before....
Is there a way to tell the backgroundrb server to reload workers a la
rails in dev mode ?
It seems that I have to cycle the server everytime I change my
workers...
Also has anyone cooked up a script for monitoring the background drb
process on a nix OS ?
ie rc init for server startup and making sure the process is happy
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
2006 Oct 11
6
Indexing problem 10.9/10.10
Sorry if this is a repost- I wasn''t sure if the www.ruby-forum.com
list works for postings.
I''ve been having trouble with indexing a large amount of documents(2.4M).
Essentially, I have one process that is following the tutorial
dumping documents to an index stored on the file system. If I open the
index with another process, and run the size() method it is stuck at
a number
2007 Feb 15
1
wrong startup information in production environment
Hi,
I check out the last codes from merb 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:
2006 Aug 08
1
Problem installing the plugin...
Hi,
I am running ruby 1.8.4 rails 1.1 on Mac OSx and I am getting the
following error installing the plugin. Any ideas ? ( BTW This is a brand new
rails app )
Thanks !!
ruby script/plugin install svn://rubyforge.org/var/svn/backgroundrb --force
subversion/libsvn_wc/lock.c:630: (apr_err=155007)
svn: ''/Users/fgaliana/work/samples/fred/vendor/plugins'' is not a working
copy
2008 Jan 23
0
Action caching...
All,
I am running Merb 0.5.0. Is there a way to specify an expiration time on
an
action cache, besides physically calling expire_action ?
I have been looking at the code and I was not able to find support for
that
Something like
cache_action( :fred => 30*60, :blee => 60*60 )
would expire fred in 30 min and blee in 1 hour...
Any tips on how to achieve that ?
2010 Nov 27
1
Bug in parseNamespaceFile or switch( , ... ) ?
parseNamespaceFile() doesn't seem to detect misspelled directives. Looking
at its code I see
switch(as.character(e[[1L]]),
<lots of args omitted here>,
stop(gettextf("unknown namespace directive: %s",
deparse(e)), call. = FALSE, domain = NA))
but this doesn't seem to function as I expect, viz. to stop with an error
if I type a wrong directive.
2007 Jul 19
0
xml builder cache (with a slight problem on initial load)
Let me give you the background. I am using rxml for a lot of my views
for a rails project. I also noticed that there is a lot of the XML
being dynamically generated on data that doesn''t change that often. I
worked on trying to cache the xml fragment that I needed but came to
the quick realization that cache only handle ERB/RHTML files. Needless
to say, I have spent some time creating an
2013 Jan 17
3
How do I manage puppet.conf? Let me count the ways.
In a recent post Nikola Petrov summerized methods for managing config
files such as puppet.conf:
* use augeas with virtual resources
* use the concat module
* use the standard template function with multiple arguments; look at
http://docs.puppetlabs.com/guides/templating.html and scroll down to
"Combining templates"
I can add a few others:
* use the ini_setting type
2007 Sep 02
17
A Proposal To Magically Remove ''params''
I have a magical proposal for the anti-magic web framework.
Controller methods do not use arguments and yet expect arguments. This
is handled through this params hash because we don''t know in advance
what parameters a client could pass to Merb. But in almost every
instance, it is too much to know all the query parameters - one
doesn''t care if the user threw in an extraneous
2006 Jan 22
3
Balancing relevancy and recentness
I was wondering if there was a good way to either balance the relevancy
score with recentness of matching documents- or include the recentness
in the score somehow?
Thanks,
Ben
--
Posted via http://www.ruby-forum.com/.