similar to: Query

Displaying 20 results from an estimated 1000 matches similar to: "Query"

2006 May 31
3
Camping and Builder and XML
Hi, I have built a simple Camping application which indexes an ODBC datasource using Ferret on startup, then accepts search strings and renders the resulting hit list in HTML, and it works quite nicely. The next step was to alternately render the list in XML for consumption by another application. In Rails, I would simply use Builder in the view to get the job done, and so I did the same in
2006 Jun 08
2
Does Edge Rails play well with GEM Rails?
Hi, I have the current version of GEM rails installed on my machine at the moment. I would like to put edge rails on for a project that I''m working on, but I would like to keep the Gem version, at least for the moment. Also is there any documentation about installing Edge rails? I have looked on the wiki but it was not obvious to me where it is. Cheers Daniel -------------- next part
2006 Jun 11
3
[SUMMARY] Rails Core Weekly June 5 - June 11
Dear list, This weeks RCW has a slightly different format than before. After all, since what we want is less bloat, this RCW is less verbose. Please do let me know what you think off-list. *Interesting stuff on the Rails Timeline* _Fixed and commited to trunk:_ An issue with not null columns in SQLite3 migrations(<a
2007 Mar 20
10
fastthread 1.0
Well, just when I thought I was out of the fastthread business... Okay, in brief: fastthread is a Ruby extension which re-implements the primitives in Ruby''s thread.rb in C. It was merged into 1.8.6, replacing the old thread.rb implementation, but the version that was merged had a couple serious bugs. So -- now I release fastthread 1.0, which is basically the Ruby 1.8.6 version with
2006 Jun 08
3
Foreign key confusion
I have 2 models right now: "users" and "posts". When a user creates a post I would like their id to be recorded under "user_id" in the "posts" table. Under the "user" model I have: class User < ActiveRecord::Base has_many :posts end And under the "posts" model I have: class Post < ActiveRecord::Base belongs_to :user
2006 Jun 07
4
Edge rails and routes
I have a route that works under 1.1.2 but does not work under edge rails. route.wishlist ''wishlist/:id'', :action => ''show_wishlist'', :id => nil, :requirements => {:id => /\d*/} This worked great without an :id, but under edge rails when I call wishlist_url with no parameters I get: "Exception: can''t convert nil into
2006 Dec 31
3
fastthread 0.6.1
I just realized -- if fastthread can be included while Mutex-using code is already running, then the definition and replacement of the classes needs to happen atomically. Otherwise, it creates a race condition where a thread can e.g. end up seeing an incompletely defined Mutex class or none at all. fastthread 0.6.1 addresses this by defining the classes and then atomically swapping the constant
2006 Jun 07
10
habtm "AND" find conditions
I have two tables and a join table for them e.g. books, authors in a many to many relationship (habtm) and a join table books_authors. I can successfully search for a book that has "author.id = 2 OR author.id = 4" but I am unable to search for "author.id = 2 AND author.id = 4" This is because the result of all the joins only has one author.id column so no single row has
2006 Jun 07
1
Calling find on AR class, order by association count?
I suspect that this is going to wind up trivial and I''m going to slap myself in the head... Suppose I have User and Comment AR classes. User has_many :comments, Comment belongs_to :user I want to do a User.find, which returns User objects in order of which user has the most comments. I suspect that this involves renaming the COUNT(*) results of a sub-select so that I can order by
2006 Jun 16
1
Is there a way of retrieving all req parameters without name
Is there a way of retrieving all the request parameters without name in the controller. Thanks & Regards, Asem -- Posted via http://www.ruby-forum.com/.
2006 Nov 14
11
RESTful mixin, mixin repo?
Hi, I just put together a little mixin to provide pseudo-RESTful services in camping apps. Basically, it looks for a hidden _verb field in form posts, and sets the @method to the supplied value (e.g. put or delete - which browsers don''t support). This lets you define put and delete methods in your controllers. Groovy. Code: http://pastie.caboo.se/22613 Is there any permanent repo of
2007 Feb 14
4
fastthread-0.6.4.1 released
== NOW A new version of fastthread, the library providing better implementations of the classes in thread.rb, has been released. Please note that fastthread is only for Ruby 1.8, not JRuby or any other Ruby implementation (most of them don''t need it anyway!). == WHY The existing implementation of Mutex, Queue, etc. in thread.rb is slow. fastthread''s is faster (and bypasses
2007 Jan 19
7
fastthread 0.6.2
It looks like I got too creative in 0.6.1 and consequently ran afoul of a bug in the Ruby interpreter. 0.6.2 works around the bug and should be entirely stable at this point. Thanks to Young Hyun for his help in coming up with test cases. == what? fastthread is a Ruby library which provides a faster (and non-memory-leaking) C implementation of the concurrency primitives from stdlib''s
2006 Jun 16
4
Unit test and get request with a URL
I''m tyring to write a unit test that uses a get() method to simulate a get request in my functional test. However, get wants an action, and I have a URL. I''m trying to redirect to a URL the user tried to hit before logging in. After they login I want to go back to the URL they originally tried. I can''t find the get() method code in the help or otherwise. I
2007 Jan 04
5
fastthread -- what is it?
Hi, A quick search didn''t explain what fastthread is, and how it relates to mongrel. Why would I want to install fastthread? Thanks, Joe
2006 Jun 07
1
has_many, through, want to store email in mysql
Hi, I''m still a new with ROR, but it''s really cool :) I just have this problem with a project of mine. I want to store email in a database. I already wrote a simple import script, that works, so that''s not a problem. Showing the email (efficiently) in a ROR site is. These tables are in the database: emails id email_id (foreign key -> emails.id) seq
2008 Jan 02
20
fastthread no longer needed?
I''m confused. Wasn''t threading fixed in 1.8.6, negating the need for fastthread? Why is fastthread still a requirement of Mongrel? Just curious. :)
2006 Dec 01
2
fastthread 0.5
Just a quick note that I''ve committed the bits for fastthread 0.5; the most important differences are that all the thread.rb classes are once again marshallable, and we''ve got Luis'' commit which eliminates some warnings when building on Win32. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type:
2008 Jun 06
1
package needed: fastthread-1.0.2
I''ve just committed the makings of fastthread-1.0.2 to SVN, fixing a couple long-standing bugs in 1.0.1: - merged the fix from ruby_1_8 to avoid rb_bugging during exit with waiting threads - SizedQueue#enq is now defined properly Could you or whoever does the signed gems please turn the crank and upload the new gems? Thanks, -mental -------------- next part -------------- A
2006 Jun 16
7
How to pass params to long running system call
Hello, Can someone tell me the best way to make a system call (from within my model) that runs for a while and requires params form my model, specifically attributes of my model. So, I need the correct syntax and also general guidelines for launching the process. Thanks so much. Regards, Doug -- Posted via http://www.ruby-forum.com/.