Displaying 20 results from an estimated 21 matches for "grosz".
Did you mean:
gross
2007 May 16
7
return ONLY total_hits without querying from real database
Hey guys,
I know I can run search(q).total_hits, but if I try to put :limit=>0 it
gives me an error. I don''t want it actually query any of the results, I
just want it to tell me how many total_hits I would have if I wanted to
search it.
How can I do this?
--
Posted via http://www.ruby-forum.com/.
2007 Apr 24
2
remote database ActiveRecord model
Does anyone know how to make a model connect to a remote database and
only for that specific model?
That way I can do the typical CRUD functions on a remote server?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2007 Jan 06
2
S3 throwing invalid argument using AWS S3 API
Hello,
Im using the following amazon web service API for S3 :
http://amazon.rubyforge.org/
The problem is that after I establish a connection using
establish_connection!, and try using the "store" command, I keep getting
the following error. However, if I reboot my webrick server, it works
fine for about one hour and then starts throwing this error:
Errno::EINVAL in
2006 Dec 16
10
Getting "ArgumentError ( isn''t a valid directory argument.
I''m hoping someone has encountered this before. I''m using AAF trunk and
trying to multi_search across 2 models. It works fine on my windows
(Webricks) dev env but now that i''ve deployed to linux, (Apache,
FastCGI) I''m getting the following error:
ArgumentError ( isn''t a valid directory argument. You should use either
a String or a Directory):
2007 Apr 23
8
rake not working when called through cron
This is currently the contents of "app-backup" in my cron.daily.
--
#!/bin/sh
# Cron Job for Mixbook Code Backup
#
# Updated February 1, 2007
cd /var/rails/beta
rake s3:backup:scm --trace >> /var/rails/beta/log/backup.log
cd /var/rails/beta/log
echo "Backup Successful on" >> backup.log
date >> backup.log
echo "--" >> backup.log
--
When I run
2007 Jul 23
1
Ferret indexing problem through rake tasks
I''m having a weird problem. Recently, on all my environments, one of my
two indexed models is not returning any results to acts_as_ferret.
However, the folder is being created for it and Im not receiving any
errors.
On my two models, I call the following:
Book.rebuild_index
User.rebuild_index
When I call those commands through either my live app "ruby
script/server" or
2007 Apr 10
1
prevent index auto update
Hi,
I have a has_many association between Book and Page.
I have acts_as_ferret running on only the Book model. However, when I
update the a page, it calls the auto update index on the Book model as
well just in case any of the ferret fields were changed.
How can I stop acts_as_ferret from auto updating the index on its own,
especially when nothing changes?
--
Posted via
2007 Feb 10
1
calling destory on HABTM clear
I know this is probably stupidly simple, but I can''t seem to figure it
out.
I have a many-to-many association using HABTM. Im trying to clear all
the stuff in the join table and call destroy on all the joined items.
For example if I have a many to many for albums and photos,
def method
album=Album.find(4)
album.photos.clear
# NOW HOW DO I DESTROY ALL THOSE PHOTOS?
end
The things I
2011 Sep 18
0
Webinar: Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN #rormeetup
...em.
(github link: https://github.com/bryanduxbury/hank)
Liberty Young of Ops at RapLeaf will present how Rapleaf utilizes its
deploy system based on Capistrano, SVN, and Puppet. He will discuss
the pros and cons of each system and answer any questions from the
audience.
Mixbook Presentations
Aryk Grosz is MixBook''s Co-Founder and CTO who will make a
presentation on how Mixbook automates and uses Ruby on Rails
deployments using Chef and GIT.
Sahil Cooner is Senior DevOps at Mixbook and will focus his
presentation on the actual application deployment and demonstrate a
deployment using RoR,...
2007 Jul 21
0
Ferret not building index successfully all of a sudden
I''ve been using acts_as_ferret for a couple of months now. Everything
was going fine. Suddenly, however, when I try to rebuild my index, only
1 of the 2 models I index gets indexed correctly.
Looking in the ferret_server logs, it says that both were successfully
rebuilt. However, one of the indexes has no data in the folder. The
other was index correctly.
The odd thing is that this only
2007 Jan 26
0
from attribute in actionmailer not working w/ gmail
I assign an email to the from attribute in my actionmailer, but I think
because I use the TLS plugin to get actionmailer to work with gmail, it
dissallows me to use change the from address. Instead it uses my gmail
account. Has anyone experienced this before?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2007 Jun 11
0
remote database connection disconnecting after certain amoun
I have a server running Merb connecting to a remote database using
"establish_connection."
When I call many methods in fast succession, I eventually get this Mysql
error:
Mysql::Error: Lost connection to MySQL server during query.
I have the ruby mysql bindings installed, as well.
Im thinking that its a problem with the database configurations. But its
hard to say its a timeout issue
2007 Jun 30
0
mysterious :action=>"undefined" bug
Has anyone ever had your RoR app try to reach an "undefined" action in
one of your controllers.
Its happening to me, but only from two different HTTP_REFERER''s.
Just curious if anyone has ever seen "undefined" stuck as an action into
one of their requests.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received
2007 Jul 12
0
update_all for an AR instance
Is there anyway to call "update_attributes" where it updates only the
attributes you specify with the update command.
The only thing close to this is update_all where you have to specify the
condition. So essentially you''d be stuck doing "id=#{obj.id}" as the
condition.
Are there any built in AR functions that allow you to update a
particular object using straight
2007 Aug 29
0
xml builder using straight xml within the rxml template
I was wondering how can I insert straight xml, ie "<a>test</a>" inside
the builder syntax.
For example, i want to be able to do something like this
xml.A do
xml.B do
"<a>test</a>"
end
end
should give:
<A>
<B>
<a>
test
</a>
</B>
</A>
Anybody have a clue on this one?
--
2007 Sep 25
0
TCPSocket.new Errno::EBADF: Bad file descriptor error
Im trying to use memcache-client, but there is a line in their where it
calls:
TCPSocket.new(host, port). It fails at this point. I''ve tried just
trying to establish a connection in my script/console with
TCPSocket.new("localhost", 11211)
TCPSocket.new("127.0.0.1", 11211)
TCPSocket.new("<my comp name>", 11211)
TCPSocket.new("<my ip
2007 Oct 11
0
RubyAMF methods not being found - plugin not being included?
Hi, Im trying to use rubyAMF, and I installed the plugin into my
vendor/plugins directory.
However, it doesnt seem to be loading the active_record and
action_controller utilities.
There is a method in rubyAMF called "as_single!" This method is not
being found in AR. Looking through the plugin code, I dont see how the
file gets required since there is no "init.rb" file in the
2008 Sep 25
1
defining polymorphic type condition
As great as Rails 2.1 is, I for the life of me cannot figure out why
polymorphic associations do not support reconfiguring the type column
used.
For example, I have no way to do a polymorphic association using a
lookup hash which maps an integer to a class name.
Storing a TINYINT unsigned is waaaaay more efficient than storing a
string like "SomeActiveRecordModel" over and over again.
2009 Mar 16
0
Version of Struct for initializing via Hash
is there any equivalent to this
class A
attr_accessor :foo, :bar
def initialize(options={})
options.each{|k,v| send("#{k}=", v)}
end
end
I know that OpenStruct is very similar, but you don''t get to define
specific attributes.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2009 May 09
0
XMLRPC raw_post getting run through Hash#from_xml
Im trying to create an api, and Im having trouble getting
ActionController to not run the raw post data through Hash#from_xml
(request.parse_formatted_request_parameters) for the XMLRPC post data.
I essentially want it to run through
XMLRPC::XMLParser::REXMLStreamParser.new.parseMethodCall(request.raw_post).
However, I can''t figure out a clever, clean way to get