Displaying 20 results from an estimated 900 matches similar to: "raking my brain to fix this"
2006 Feb 23
3
rake error
I installed at least one gem since I thought I actually once was able to
run ''rake appdoc'' command since there is an api for my models and the
ez_where plugin that I installed earlier. I wanted to see the api for
pdf-writer which is the gem that I installed most recently.
(no, I haven''t given up the issue of ''looping'' that Kevin and some
others replied
2006 Aug 02
5
Fun with ez_where
I''ve been trying to use the ez_where plugin to create a dynamic finder.
The structure looks somehing like this..
=== controller ===
def list
attribute_filter = params[:filter]
@filter = Caboose::EZ::Condition.new :table do
attribute <=> attribute_filter if attribute_filter
end
#
... do the find with the @filter
#
end
=== view ===
....
<%= link_to
2006 May 23
3
ez-where headscratch
Hi there,
I''m puzzled by this apparently simple query I can''t manage to reassemble
using ez_where plugin.
cond = Caboose::EZ::Condition.new :my_table do
start_on < Time.now
any {end_on > Time.now; end_on.nil?}
end
I keep getting the following result :
>> cond.to_sql
=> ["my_table.start_on < ? AND (my_table.end_on > ?)", Tue May 23
2006 Feb 22
2
Using ez_where
Hi All,
I am trying to pass values to ez_where to construct my conditions. I
need
to know how the params need to be formated for ez_where.
My search class looks like this:
def search
@display_ad = DisplayAd.new(params[:display_ad])
cond = Caboose::EZ::Condition.new do
pub_date == ''@display_ad.pub_date''
io_number =~
2006 Apr 18
3
ez_where query question
I''m having fun composing queries with ez_where, but am stuck on how to
formulate the following using the ez syntax:
(begin_date >= ? OR end_date >= ?) AND (description LIKE ? OR name LIKE ?)
There are two clauses, each containing OR operators (the ez ''any'' syntax)
but both clauses must evaulate to true for a match.
Can anyone suggest the proper way to construct
2006 Apr 15
2
ez_where : i''m puzzled
I have the following code:
condition_clause = "%#{@phrase}%"
logger.info "condition is #{condition_clause}"
unless @phrase.nil?
condition = Caboose::EZ::Condition.new :affiliates do
affiliate_name =~ "%#{@phrase}%" # <<< here''s the problem
end
options[:conditions] = condition.to_sql
logger.info "ajax
2006 Jul 28
2
ez_where: Stuck Again
I just keep thinking this is going to slice through queries like a hot knife
through butter, but... there''s something I''m not getting. Here''s the gist:
# get the people like the search criteria
Members.find(:all, :conditions => [''first LIKE ? OR last LIKE ?'',
params[:search], params[:search])
joined with the alternative of
2006 Feb 15
10
STI Question
Hi everyone,
I have 3 types of people (for now):
Staff
Faculty
Students
To break them up into classes, but keep them in the same People table,
I''ve broken them up like so (code and ''ends'' snipped):
class Person < ActiveRecord::Base
class Employee < Person
class Staff < Employee
class Faculty < Employee
class Student < Employee
So, when I insert
2006 Jan 31
11
ez_where plugin updated features.
Friends-
I wanted to let people know that there is a new experimental release
of this plugin. I would love feedback on syntax and features. There
is now a full test suite with fixtures that covers all the available
syntax. Look at the test suite for more syntax possibilities. There
have been many additions since my last release. Fabien Atelier has
been working on this with me and has
2006 Apr 16
3
variable variables?
Hi everyone,
Does Ruby support variable variables like PHP
(http://www.php.net/manual/en/language.variables.variable.php)? Or do I have
to use eval, like
some_hash.each_pair{|key, pair|
eval "#{key} = #{value}"
}
Or is there some other way?
I''m actually trying to figure this out in order to use ez_where to create
its conditions from a hash, so if this isn''t even
2006 Feb 19
8
building multiple find conditions
I am trying to allow for AND type ''find'' but to allow for simply a
single set of find criteria.
controller code...
@vw_string = @vw_string1 = @vw_string2 = @vw_string3 = []
if params[:beg_intake_date] != "" then
@vw_string1 = ["intake_date between ? and ?",
params[:beg_intake_date], params[:end_intake_date] ]
end
if
2006 Feb 15
6
Problem creating appdoc documentation
Hello, can anyone help me.
After a few weeks I returned to the rails to play with it. But I
recognize that I''m now not abble to build appdoc. The same thing that
few weeks ago worked without an problem now give me an error:
unrecognized option `--line-numbers --inline-source''
$ rake --trace --verbose reappdoc
(in /home/radek/src/firma/giga-net/ncc/work)
** Invoke reappdoc
2006 Mar 06
2
Can''t see documentation after executing "rake appdoc"
I successfully got rake appdoc to work on the depot application (after
manually applying the patch for rake 0.70).
Everything appears to generate fine, but I can''t pull up the
documentation in my browser.
I''ve tried:
http://localhost:3000/doc/app/
http://localhost:3000/doc/app/index.html
I always get:
Recognition failed for "/doc/app/"
with
2006 Apr 22
4
Slice and dice plugin
I''ve been playing around with some easier ways of specifying
conditions in active record, and have come up with a little plugin
that some may find useful. Currently active record finder and
calculations methods can take a :conditions option with a string or
array listing some sql conditions, eg:
Animals.find :first, :conditions => "name = ''Tiger''"
My
2006 Feb 26
5
Plugins? Components?
Hi,
Newbie here :)
Can someone help explain the difference between "plugins" (put in the
/vendor/plugins directory) and "components" (put into the /components
directory)?
Is it just that "plugins" have an init.rb file that is automatically loaded?
Also, how can I dynamically find out which files/controllers are
available in the /components directory?
Thanks,
2006 Feb 28
5
rake appdoc errors
when running rake rake appdoc (os x 10.4) i get the following error:
unrecognized option `--line-numbers --inline-source''
any ideas?
sebastian
2016 Dec 14
1
netbios alias and AD trouble
Hello there
I've got two samba servers srv1 and srv2
smb.conf for srv1:
netbios aliases srv1-alias
smb.conf for srv2:
netbios aliases srv2-alias
DNS is configured all right and resolves the names. Each name has got
its own IP address.
Both servers are AD members, run as expected and can be connected to via
their netbios and netbios alias names.
If, for example, srv1 fails I want to add
2005 Aug 29
2
Where to point the browser to for appdoc documentation
Under windows XP I created a batch file in the depot directory this takes care
of generating the application documentation. The default rake appdoc isn''t
working under windows right now (remove the -T option).
So, where do I point my browser to (so that I can view the new generated
application documentation)? Running gem_server didn''t help so far...
listing doc.bat
rdoc -o
2012 Apr 20
1
Upgrading from V3.0 production system to V3.3
Before I undertake this upgrade I thought I would see if anyone has any advice
on how to do this on a production system. Maybe someone has already "fought
this dragon".
Current config Gluster V3.0.0. This has been in production for over 16 months:
2 servers with 8 x 2TB hard drives (bricks) replicated
svr1:vol1 <-> srv2:vol1 -> rbrick1
svr1:vol2 <-> srv2:vol2 ->
2009 Nov 21
3
Connect two Asterisk Server in IAX ?
Hi
My first post get no answer :=<, i post new with new elements.
I have two Asterisk server, running on Asterisk 1.6:
SRV1 = 192.168.0.5 on Asterisk 1.6.1.4
SRV2 = 192.168.0.20 on Asterisk 1.6.1.8
I want create a link for exchange call.
on Srv1:
iax.conf:
[general]
bindport=4569
bindaddr=0.0.0.0
language=fr
bandwidth=low
jitterbuffer=no
forcejitterbuffer=no
autokill=yes