Displaying 20 results from an estimated 3000 matches similar to: "ID fields not getting picked up"
2006 Mar 31
5
Changing Table Schema and Models
If I make a change to a database table, how do I recreate the model to
reflect the change?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 31
18
Modelling Foreign Keys
Can someone point me to a reference or tutorial that shows how to map
foreign key relationships in the model?
For example given:
Users
id
name
email
Posts
id
user_id
title
How do I associate user_id with users.id in the Post and User models?
has_many and belongs_to don''t seem to do it.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 04
2
Syntax Error in find()
Maybe I misunderstand the parameterization of find(), I am getting this
syntax error for
<% @choices = Choic
e.find(:all, :conditions => "question_id" = question.id, :order =>
"order") %>
---- ERROR LOG ----
ActionView::TemplateError (compile error
../config/../app/views/admin/test/show.rhtml:37: syntax error
_erbout.concat " "; @choices =
2006 Apr 29
5
Getting Session ID
I thought I understood how to grab the session id but in the following
code I am getting null for the session id:
@foo = Foo.new(:session_id => session[:session_id],
:test_id => @test.id)
--
Posted via http://www.ruby-forum.com/.
2006 Mar 30
4
404 Error on dispatch.fcgi
I''m a java/php programmer trying out Ruby/Rails on my Dreamhost account.
I followed the wiki steps to the letter (2x now) and am still getting a
404 when I hit my dispatch.fcgi.
http://mydomain.com/public/dispatch.fgci
Can someone give me suggestions on how to debug this problem?
Here is my dispatch.fcgi file:
#!/usr/bin/env ruby
#
# You may specify the path to the FastCGI crash log
2006 Apr 04
1
Redirecting after "new" action
How do I alter the "new" action so that it returns to a page of my
specification (vs. returning to "list")?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 31
3
Why use a Subdomain?
New to Ruby on Rails. I''ve been playing around with an application I set
up at rails.foo.com.
Basically this means that all my pages tied to the application live on
that subdomain. Is there any reason for not just installing onto your
parent domain foo.com and putting your static pages in the public dir
that ruby on rails creates?
The answer seems like a simple yes, however all the
2006 Feb 11
2
validates_uniqueness_of - how to use multiple values for scope
Hi
I''m trying to create a basic test management tool to organise the manual
testing I have to do. I''m working on the results recording module and have a
problem.
Basically, I want each test result to belong to a test case, a test
environment and a build.
I want to make sure there''s no duplication of results with these 3
properties. If someone tries to enter a new test
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases.
Here is the error I am getting:
MysqlError (Can''t connect to local MySQL server through socket
''/var/run/mysqld/mysqld.sock'' (2)):
Here is my database.yml:
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql --
2001 May 25
1
ssh-keygen segfault (2.9p1)
On Fri, May 25, 2001 at 02:21:06PM +0200, Nigel Kukard wrote:
> Hi,
>
> [nkukard at wigglytuff .ssh]$ ssh-keygen -pf test_id
> Enter old passphrase:
> 'ey has comment 'ii
> Enter new passphrase (empty for no passphrase):
> Enter same passphrase again:
> Segmentation fault (core dumped)
> [nkukard at wigglytuff .ssh]$
>
>
> That is the error
2012 Aug 04
2
ggplot2 boxplot help
Hello,
I have a data set that looks like this:
name G-ID test_id g-id g
1 00077464 C_068131 C_068131 OC_068131 -
2 00051728 C_044461 C_044461 OC_044461 -
3 00058738 C_050343 C_050343 OC_050343 -
4 00059239 C_050649 C_050649 OC_050649 -
5 00001761 C_000909 C_000909 OC_000909 -
6 00005119 C_002752 C_002752 OC_002752 -
locs
2006 Apr 03
3
Read Only Error Since 1.1?
Since I upgraded to 1.1, I am getting ''ActiveRecord::ReadOnlyRecord''
exceptions when trying to save a specific record.
I read up on ActiveRecord::Base.readonly? but I don''t think the condition
there (objects pulled in from a certain JOIN type) applies.
Here''s my code that is throwing the exception:
@company = session[:company]
@company.bytes_used =
2006 Apr 07
6
Magic Field Names - "position"
What does the Magic Field Name position do?
I was looking here:
http://wiki.rubyonrails.com/rails/pages/MagicFieldNames
And unfortunately that documentation is incomplete.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2004 Sep 28
3
memory increase for large r simulation
Hi,
I am running R from windows 95. I have a large
simulation, which R does not get very far through
before telling me:
"error cannot allocate vector of size 871875 Kb"
and warning message "reached total allocation of 127
Mb"
I have been trying to increase the memory allocation
to R from my computer, using various commands at the R
prompt, such as memory.limit(size=......)
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi,
when I define a db column to be non-nullable or of length 20 or as
numeric, I would expect rails to validate that, but that doesn''t seem
to be the case.
Any idea why that is? The metadata is accessible, at least in the mysql case.
I am using rails 1.0 with mysql 5.
Cheers,
Mariano
2006 Apr 07
3
*dont* empty the database...?
I''d like to test against a very large dataset - is there anyway to prevent
the data in the test database being destroyed on each test run? storing the
dataset in fixtures causes the tests to take several minutes to complete,
even using csv fixtures, and that''s just for one test case!
I''d appreciate any suggestions on how to preserve the data in the test database
2011 Jan 09
2
Idea to possibly improve flac?
> did you read brian w's explanation of why FLAC appears "dead" ? the
> same thing really
> applies to cdparanoia, a program now more than 10 years old, maybe
> even 15. some things about ripping audio CDs just .... don't change.
Oh I don't doubt the basics, red book is red book and bits are
identically replicable and re rippable bits. But just as I said, there
2006 Apr 05
4
Development Mode on Dreamhost
Anyone know (or know where to point me to) to figure out how to force
Rails into development mode? I''d like to not have to kill dispatch.fcgi
everytime I make a change. My site is not live and I''m just doing
development and testing right now.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2003 Feb 24
2
Rsync between HPUX11.11 and Redhat7.3
Hi,
If anyone has an Idea on how to solve the following problem
it would be greatly appreciated :).
The scenario is as follows:
Im running an rsync server on Redhat7.3. The rsync server
configuration file looks as follows:
#### rsyncd.conf
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
max connections = 5
use chroot = true
list = true
2007 Oct 04
2
Audio Speed Variability
John,
Thanks for the reply! You mentioned output sample rates should be 44100
or 48000, should I worry about input (Mic) Sample rates as well?
(Currently I was requesting the sample rate on both ends to be 16000
samplesPerSecond, for ease of passing into the codec) Also, do you
recommend any particular resampler that I should use, or are any of the
ones out there probably okay, or should