similar to: Rails 1.1

Displaying 20 results from an estimated 4000 matches similar to: "Rails 1.1"

2006 Mar 31
6
Adding objects to a :through association
So I''m one of those nasty people building a self-referential habtm-like Association using the funky new :through stuff. This is about users having friends, so here''s my user.rb: class User < ActiveRecord::Base has_many :friendships, :foreign_key => ''user_id'' has_many :friends, :through => :friendships, :source => :friend end And here''s
2006 Jun 08
7
Sessions
In the Agile WD book it states regarding sesion data- "Rails uses the cookie-based approach". This can''t be entirely true can it ? Not that I''m complaining if it was but isn''t there some equivalent to say, PHP sessions ? Or am I wrong. Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 31
2
Eager loading of polymorphic associations
Polymorphic associations work great until I try to do some eager loading through :include. In my example, the interface name is ":imagehaver". Here''s my little eagerly loading find line: Image.find(params[:id], :include => :imagehaver) All it gives me is an ActiveRecord::EagerLoadPolymorphicError with no further explanation. I haven''t been able to dig up anything
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a terrible time getting the models set up correctly. I have an order table that has a primary field named order_number. I have a name table with a primary of item_number. These two tables are liked by the item_number and the order_number, but not as you might think. If the order_number is 2500, then each entry in
2003 Feb 03
4
[Bug 40] system hangs, Availability problems, maybe conntrack bug, possible reason here.
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=40 laforge@netfilter.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From laforge@netfilter.org 2003-02-03 16:49 ------- We haven't seen this
2002 Oct 13
2
Encoding/decoding Ogg Vorbis .NET library?
Hey list, I think the subject pretty much sums it up. Is anyone working on a (pure) .NET library that decodes and possibly encodes Ogg Vorbis? Take care, Hendrik --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word
2005 May 24
3
textilize/markdown/sanitize for messageboards, oh my!
Hullo, fellow Railsers! (warning: this isn''t a 100% Rails specific question, but I guess it very much applies to what a lot of us are currently doing.) For a project that involves messageboard functionality I''m looking for a good way of sanitizing user input, so the silly fools, err, my wonderful users don''t mess things up too much. I''ve played around with
2008 Nov 28
5
Neighbour table overflow
Just started getting this. I tried the following by adding it to my etc/sysctl.conf: net.ipv4.neigh.default.gc_thresh1 = 4096 net.ipv4.neigh.default.gc_thresh2 = 8192 net.ipv4.neigh.default.gc_thresh3 = 8192 net.ipv4.neigh.default.base_reachable_time = 86400 net.ipv4.neigh.default.gc_stale_time = 86400 That pretty much locked things up. Then I tried another googled solution: echo 256 >
2006 Jun 24
7
Newbie Q: "user" variable in every view?
Newbie to RoR -- as a long time Java Struts/etc. guy it is an awesome tool! I have implemented some basic login/session stuff with the help of a great tutorial, props to the author ( http://www.aidanf.net/rails_user_authentication_tutorial). I have a trivial instance method in ApplicationController, which just grabs the User object from the session. def current_user session[:user] end
2006 Apr 25
4
Symlinks in Capistrano?
I have a few projects with large directories (say, user-uploaded files) that make using Capistrano a bit awkward. However, I suspect that I may have reached the "write a custom task" level. (I suppose I''m just thinking out loud, here...) It seems as though I''d want this directories symlinked in /shared... Maybe there''s a way to extend the
2005 Aug 03
1
help for cell2nb and queencell in spdep package
Dear Dr. Bivand and R-users, I have a 5 by 5 grid, say, location[1:5,1:5], and I want to know the indices of 8 neighbours of each cell. For example, for location[2,2], its neighbour coordinates are [1,1:3], [2,1], [2,3] and [3,1:3]. Sometimes I also need to remove edge effects (torus = TRUE). I have tried "cell2nb" function in your spdep package. Here's my example: > neigh
2008 Mar 12
1
Neighbour table overflow.
Hi, I am getting below error on mailgw. it has 2 ethernets. eth0 is connected to internet, while eth1 is connected to LAN where there are about 300 PCs. Mar 12 09:14:00 gateway kernel: NET: 697 messages suppressed. Mar 12 09:14:00 gateway kernel: Neighbour table overflow. Mar 12 09:14:05 gateway kernel: NET: 660 messages suppressed. Mar 12 09:14:05 gateway kernel: Neighbour table overflow. Mar
2005 Oct 19
6
arp flood (offtopic?)
Hi guys, Sorry if this is a little offtopic, but I was wandering what can one do to prevent/stop arp flooding ? Thanks, Alex -- This message has been scanned for viruses and dangerous content by LG-Network(http://www.lgnet.ro), and is believed to be clean.
2006 Jul 22
2
XHTML validation for functional tests
Hi, Is there anyway to validate XHTML during functional tests? Thank you, Jean-Etienne -- Posted via http://www.ruby-forum.com/.
2004 Jan 11
24
More words for Allison
Here's the latest batch of words to get shipped out to Allison Smith. Please submit reasonably small changes to me by tomorrow 10:00 AM Eastern time, and I'll add them. As usual, donations to what will be a ~$110 USD expense would be appreciated, as I am paying for this round out of my pocket. Please send to paypal address "jtodd@loligo.com". I did not include all
2007 Mar 05
4
Router dropping packets?
Hey guys, I have several Linux routers in place at high-usage locations (student apartment complexes). I''m having trouble with some of the routers which use 6Mbit DSL lines as their Internet feed. The routers use PPPoE and perform NAT. During peak usage periods, the routers are dropping alot of packets. I''m lead to believe this is because there are too many active
2006 Aug 07
4
[LLVMdev] gcc4 or gcc3?
I just downloaded the CVS version of llvm and llvm-test. Presumably this is the one that's scheduled to become 1.8 in a few days. (1) To install llvm, do I really need the llvm version of the gcc front end? I have no special interest in yet another c/c++ conmpiler. (2) If I need llvm gcc, will the binary version suffice, or do I need to compile the CVS version? (3) If I need its source
2008 Jun 19
3
[LLVMdev] gcc in c++
Hi, Have you seen this: http://gcc.gnu.org/ml/gcc/2008-06/msg00385.html There is a new branch for converting gcc to C++. Best regards, --Edwin
2008 Jul 02
0
[LLVMdev] gcc in c++
On Thu, 19 Jun 2008 09:44:46 +0300, Török Edwin wrote: > Hi, > > Have you seen this: http://gcc.gnu.org/ml/gcc/2008-06/msg00385.html > There is a new branch for converting gcc to C++. > > Best regards, > --Edwin The sad thing is that they seem to be replacing one unsafe language with another, presumably with enormous effort. The only hopeful sign in that thread is the
2008 Jun 03
3
[LLVMdev] Problems with iterator.h
Just finished the compiling llvm without llvm-gcc from svn. Tried it out. Got g++ -o hlvm.o -c -I/farhome/hendrik/dv/llvm/llvm/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -g -Woverloaded-virtual hlvm.cpp In file included from /farhome/hendrik/dv/llvm/llvm/include/llvm/DerivedTypes.h: 21, from hlvm.cpp:1: /farhome/hendrik/dv/llvm/llvm/include/llvm/Type.h:19:31: error: