Displaying 20 results from an estimated 22 matches for "aryk".
Did you mean:
ark
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 Feb 10
1
calling destory on HABTM clear
...n 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 thought would work didn''t.
Any ideas.
Thanks in advance. Aryk
--
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, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gma...
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
2007 Jul 23
1
Ferret indexing problem through rake tasks
...creates the indexes successfully, but it will
return NO results for the Book model. However, User will continue to
work. Looking in the log files, it shows that the rebuilds were
successful. Im guessing there is some kind of linking problems here.
Anyone have any suggestions?
Thanks in advance. - Aryk
--
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,
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 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 08
0
RAW_POST_DATA not in header
...I know Rails has a fix for this. Haven''t been able to do it in Merb.
I tried doing "request.body.read" which gives nothing, however when I do request.body.length, I get a length over 2000. I tried accessing $stdin, however I can''t seem to get the darn data out of it.
Aryk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070207/623ce95a/attachment.html
2011 Sep 18
0
Webinar: Ruby on Rails: Automating with Chef, Capistrano, Git, Puppet & SVN #rormeetup
...system.
(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 usin...
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