similar to: Using helpers...

Displaying 20 results from an estimated 200 matches similar to: "Using helpers..."

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 was scrubbed... URL:
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
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 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 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
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 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 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
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 ?
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
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/.
2007 Sep 07
1
Rails + require returns ??
All, I have a rails controller that is requiring a ruby file ie res = require ''blee'' p res.inspect # <= [] ?? class FredController < ApplicationController .... end Printing the return value of the require, I was expecting to see true or false whether the required ruby file was previously loaded or not. Instead it seems to always return an
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
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:
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:
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 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 Sep 14
10
scriptaculous Toggle Appear rate
I have the following code to toggle a basic appear of a div: <a href="#" onclick="Effect.toggle(''d3'',''appear''); return false;">Toggle appear</a> I want to edit the rate in which the effect runs. I can''t for the life of me figure it out. I would like to make the effect complete faster, like .5 seconds. I''ve
2007 Jun 30
3
return custom http responses from a controller?
Is it possible to have a response to the browser triggered prematurely in a controller? like before rails does all it''s internal processing? also if so can I change the content-type for the response? thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups