Displaying 18 results from an estimated 18 matches for "blees".
Did you mean:
bleed
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 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....
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
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 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 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 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:
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 ?
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
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 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
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
2006 Jan 03
1
find_by datetime question
Hi,
I was wondering if any of you Rails/SQL ninjas knew of an elegant way
to grab from activerecord all the rows that are within an interval of the
current time (say in the last week). For instance, if there''s the
created_on datetime column, is there a zippy way to use find() without SQL?
It seems like the Ruby
DateTime object doesn''t really do intervals for numerous
2009 Sep 15
1
Detecting Transfer
Is there a way to detect if a call is a transfer in the dialplan? Here
is my issue: I have an office with 2 extensions. Under normal
circumstances any call that comes in should ring both extensions. I
accomplish this through a queue. The problem is that if the call is
answered on say extension 11 and the answerer wants to transfer the call
to the other phone, extension 10, transferring
2006 Jan 05
0
Subdomains - redirect to different actions?
Hey,
I''m trying to figure out what the most elegant way to do this - I''ve only got a small
amount of different subdomains corresponding to categories -
and I''ve been using fragment caching.
In particular, I was wondering what the best way to call these actions is -
I''m thinking redirect and render_component aren''t really very nice
2006 Jan 13
1
page caching - rewrite rules/ trailing slash question
Hi,
I was wondering if anyone has run into this issue in which trailing slashes
are triggering the controller/action instead of serving the cached page in the public/ directory.
For example
www.myhost.com/controller/action - will serve up public/controller/action.html
but www.myhost.com/controller/action/ - will run the action again.
I''m quite newbie with the entire Apache
2006 Jun 07
1
Acts_as_ferret - phrase query
Sorry if this is another basic question, I was wondering if anyone could
point me to an example (or provide) one of using acts_as_ferret with a
more complicated query? My understanding is that by default, if I pass
a string to find_by_contents, it''s an AND''d keyword query. In
particular, I''m interested in phrase queries.
Thanks,
Ben
--
Posted via
2006 Apr 30
2
HABTM: Find sorted by number of associations
Hi,
I''ve been googling and searching the forums for some time
but can''t seem to find exactly what I''m looking for.
Suppose User HABTM Products (for example a favorites list). I would like to
construct a single query for finding Products ordered by the number of
Users that have flagged them as favorites.
Although I can construct the query using SQL a with a