similar to: proposed bugfix/patch: ActiveRecord cross-module associations

Displaying 20 results from an estimated 1000 matches similar to: "proposed bugfix/patch: ActiveRecord cross-module associations"

2006 Jul 16
6
using collection_select
hello, supposing i have a User class that contains a Wibble class User < ActiveRecord::Base has_one :wibble end in my view i have <%= collection_select :user, :wibble, Wibble.find(:all), :id, :name %> when i post, i get an error like "Wibble expected, got String" how/where am I supposed to convert this posted wibble_id into a Wibble, or am I using collection_select
2007 Sep 21
3
TextMate Bundle and exception when switching to alternate file.
Hey, sorry if this is something better suited to another list. I''ve encountered a strange problem with the RSpec.tmbundle in trunk - namely that it was raising an exception when pressing ctrl-shift-downarrow (switch between spec and source - "Alternate File"). I tracked down the issue to be handling of the file_type in switch_command.rb#content_for() - the code expected the
2006 Jun 16
0
Getting error on a group select
Hi, I''m very new with Ruby and Rails. I have read Agile Web Development with Rails and was trying to create a grouped selection list by following his example on page 359. My helper looks like this: module LoginHelper AssocOption = Struct.new(:code_name, :display_name) class AssocType attr_reader :type_name, :options def initialize(name) @type_name = name
2006 Jun 16
0
Getting an error on options_groups_from_collection_for_select
Hi, I''m very new with Ruby and Rails. I have read Agile Web Development with Rails and was trying to create a grouped selection list by following his example on page 359. My helper looks like this: module LoginHelper AssocOption = Struct.new(:code_name, :display_name) class AssocType attr_reader :type_name, :options def initialize(name) @type_name = name
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi, in the past few months someone posted an entry on their blog about how to do validations in non-AR classes and I cant find it any more. Anyone have a link? Thanks, Trevor -- Trevor Squires http://somethinglearned.com
2007 Feb 12
0
[862] trunk/wxruby2/swig/fixmodule.rb: Fix regression from upgrading to SWIG 1.3.31; cure lots of MSW crashes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2006 Jan 23
3
problem with a selfmade helper method
Hi all, i tried to set up the helper method "grouped_programs_selector" in application_helpers.rb. Since i dont have a deep understanding of Ruby itself, I pretty much copied the Grouped Selection List (Chapter 17, pp. 259, 260) example from Dave & David''s Book. The optiongroups are properly created by my method, but there are no options inside. Maybe you can debug this
2000 Mar 22
0
Not being digested, now . . . the question!
Folks, Thanks to Ricardo Stella and "Chris" for quick assistance, I had sent about 15 help requests to listproc and given up, seeing no sign of a samba-digest list which is what my majordomo training has taught me. What a strange default setting . . . So onto my question about Samba. I've installed the latest RPM from the samba FTP site (samba-2.0.6-19991110) on a RedHat Linux
2008 Jul 30
0
[LLVMdev] llvm-gcc fortran bootstrap broken
On Wednesday 30 July 2008 18:13:27 Duncan Sands wrote: > On x86-64 linux, in stage 2, I get: > > c++ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o f951 \ > fortran/arith.o
2006 Mar 20
0
Only 8 tickets remaining for Next Final Drive (Rails 1.1)
A huge thanks to all the rails developers that worked so hard to improve rails after the 1.0 release! Only 8 tickets remain in the FD report. Next Final Drive (what will be fixed before Rails 1.1) http://dev.rubyonrails.org/report/14 #4234 AR serialization broken with PostgreSQL/Ruby 1.8.2 ActiveRecord David 03/14/06 #4155 type_name_with_module fails, throws Uninitialized Constant
2010 Apr 26
2
woriking under webrick but not under passenger
Hi! I have just added login feature to my rails application (followed the instruction from (Agile Web Development with Rails) but now I am getting strange errors (looks to me like some kind of routing problem) under the passenger/apache. The error is: 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. From the log:
2006 May 08
1
kevent error (1.0.b7) - Is this a FreeBSD-only problem?
Hello everyone, The problem below has been reported, but I did not see any response! <cut> | | I'm also seeing this bug while testing the forthcoming 1.0.b7 FreeBSD | | port under 6.1-PRERELEASE: | | | | Info: imap-login: Login: user=<wibble>, method=PLAIN, rip=10.0.0.2, | | lip=10.0.0.2, TLS | | dovecot: Error: IMAP(isometry): Unrecognized event: kevent {.ident = | |
2010 Aug 13
0
some helpful tips on using RODBC
Hey everyone, I don't have a question. Instead some helpful advice with things I've learned from trying to connect 'R' to databases using RODBC. ROBDC is a very handy tool that, once you have everything fixed up nicely, is a great way to have scripts run fairly autonomously, safe in the knowledge that data isn't accidentally messed up. But I was fairly ignorant
2006 Apr 25
7
Rails producing the / page.
Hi all Very simple question, im sure, but I cant find docs anywhere that tell me how to do this. What I want is for the index page of the server to be generated from rails, is www.wibble.com/ will result in a page that has been processed by rails, has the templates etc. >From what I can see, the index page comes from public/index.html How do I get this to be a rails page? Thanks Jonathan
2010 Nov 25
1
RODBC
Hi, I am running the RODBC examples form the help guide. I am trying to UPDATE a table in an Access data base but I am having an error. library(RODBC) library(termstrc) path = getwd() setwd(getwd()) dbName = "data.mdb" pathdbname = paste(path,"/",dbName,sep="") accesChannel = odbcConnectAccess(pathdbname, uid = "", pwd = "")
2006 May 24
1
Best practices: a little pop-quiz on my blog
Hey, I just put up a little rails pop-quiz on my blog (more fun than just writing a post saying "hey did you know..."). Seeing as it''s probably of interest to more than just the three people (including my wife) that actually read my blog I figured it would be okay to announce it here. http://tinyurl.com/prxdl I''ll post my answers in a followup tomorrow
2005 Dec 08
2
bounce effect
Hi, I was wondering if anyone has seen (or completed) an effect to make something ''bounce'' like icons do in the OS X dock when you launch them? Something that looks like there''s a bit of gravitational behavior to it? Thanks, Trevor Trevor Squires http://somethinglearned.com
2006 Mar 16
2
[LLVMdev] Re: Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
Evan Cheng wrote: > Hi, > > Here is the follow on patch for this problem. Please apply this from > the top of the tree and rebuild. With the patch from Chris and then the patch from you combined, the previous error disappeared, but I get another error, reduced to this: ./cc1 -fpreprocessed libgcc2.i -quiet -dumpbase libgcc2.c -mtune=pentiumpro -auxbase-strip libgcc/./_clz.o -g -O2
2005 Aug 17
1
RODBC and sqlColumns
I have a Postgres database that I am connecting to with the Postgres ODBC driver on Windows XP in R 2.1.0. In the database is a database with two schemas (public and X). With RODBC (1.1-4) , I can connect to the database and get the tables with sqlTables(db). I can query tables in the schema with sqlQuery("SELECT * FROM X.test"). However, I can't get the columns in table X.test
2006 Dec 15
1
Ferret debugging
Is there any way to debug processes of creating/updating of index and data retrieval? I use ferret (0.10.13) and acts_as_ferret plugin, and it seems that index is being updated - field ''state_or_province_or_region'' has value ''ON'': ferret_create/update: Entity : 1 creating doc for class: Entity, id: 1 Adding field description with value ''Sed metus