Displaying 20 results from an estimated 20000 matches similar to: "Re: Rails - validate inclusion fails on rake test:integration"
2009 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index
Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised:
compile error
app/views/upload/uploadfile.rhtml:10: syntax error
Extracted source (around line *#10*):
7: <% end  %>
Trace of template inclusion: app/views/upload/uploadfile.rhtml
RAILS_ROOT: /home/malathi/www/upload
Application Trace <http://localhost:3000/upload#> | Framework
2006 Jul 16
0
Why does belongs_to handle "conflicts" this way?
When you define belongs_to in a model, you can either access
association or association_id.  I was wondering how Rails would handle
things if you set each one to be different.
I made two simple models:
class Foo < ActiveRecord::Base; end
class Bar < ActiveRecord::Base
  belongs_to :foo
end
Now here''s a script/console session.
>> f = Foo.create
=> #<Foo:0x270ec10
2008 Aug 20
2
Re: undefine "require_gem"
On 20 Aug 2008, at 13:47, Amin Shah wrote:
>
> Frederick Cheung wrote:
>> On 20 Aug 2008, at 13:41, Amin Shah wrote:
>>
>>> update, boot.rb replace the "requiregem" etc. But still don''t get at
>>> any
>>> success.
>>>
>> require_gem is just gem now.
>>
>> Fred
>
> Thanks for your reply,
>   So at
2008 Aug 23
0
Re: Giving up on Rails: programmer un-happiness
Hi It''s me schruthensis = dschruth (sorry for the confusion with my
nickname change)
Before people go crazy trying to continue to side or oppose with me on
this issue... I think I should make it clear that I schruthensis (now
dschruth)  have solved many of my problems as I stated earlier today
in my post.   Thus, I''m no longer on the side anymore that you may
have assumed I was
2009 Dec 22
16
Will paginate is missing on rake db:migrate
I have a very annoying problem, when doing rake db:migrate, I get the
error message:
Missing these required gems:
  will_paginate  ~> 2.3.11
But the gem is not missing, It runs very well in my app. To make the
rake pass I have to comment out the gem in my environment.rb file.
environment.rb:
config.gem "will_paginate", :version => "~> 2.3.11", :source =>
2011 Jan 19
6
rake aborted! can't convert Hash into String
Hello,
I encouter a problem when i try to do "rake db:migrate":
rake aborted!
can''t convert Hash into String
Here is the trace result:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can''t convert Hash into String
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1408:in
2008 Sep 24
5
Re: save blob to file?
Frederick Cheung wrote:
> On 14 Aug 2008, at 15:11, John Griffiths wrote:
> 
>>
>> hope someone can help with this,
>>
>> in my mysql table i''ve got a blob column storing images inside the
>> database, it''s also got the filetype and filesize.
>>
>> now i can work out what the filename will be (e.g. 2002.jpg) but i  
>>
2012 Jul 20
0
Forced inclusion of varaibles in validate command as well as step
Dear prof. Harrell,
I'm not able to use the force option with fastbw, here an example of the error I've got (dataset stagec rpart package):
> fitstc <- cph(Surv(stagec$pgtime,stagec$pgstat) ~ age + eet + g2 + grade + gleason + ploidy, data=stagec)
> fbwstc <- fastbw(fitstc,rule="aic",type="individual")
> fbwstc
 Deleted Chi-Sq d.f. P      Residual d.f.
2011 Feb 25
1
Forced inclusion of varaibles in validate command as well as step
Hello all
 
I am a very new R user
 
I am used to using STATA
 
My problem:
 
I want to build a Cox model and validate this.
 
I have a large number of clinical relevant factors and feel the need to
reduce these. Meanwhile I have some clinical variables I deem sufficiently
important to force into the model regardless of AIC or p value.
 
This is my present log over commands
2006 Jan 03
4
Set the foreign key constraint column name?
I am applying Rails to an existing schema and not sure how much the 
existing developers will let me go in and rename things.  So I need to 
discover the limits of what I can change with Rails.
I''ve found set_table_name and set_primary_key, which have been very 
useful.
If I have a "foo has_one :bar" relationship, but then in the bar table 
my column is named "fooid"
2010 Mar 18
3
rake db:migrate -> uninitialized constant
Hi--
I''m trying to do a first migration (2.3.5). I generated a model
"Video", but when I try to migrate I get "uninitialized constant
Videos". Why is it trying to find a plural class name?
Here''s more complete output:
trans@logisys:models$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
**
2008 Jul 15
9
Beginner Question.
I''m just getting into RoR, coming from a long PHP background. So far I
LOVE IT!
I''m hitting a roadblock with updating my mysql database. For
simplicities sake, I have 2 tables and here are the relevant columns.
Table Users
 id
 name
 email
Table Issues
 id
 createdby
 assignedto
 reportedby
In my models I have everything mapped properly I believe.
When I try to update the
2009 Feb 10
0
Re: form_remote_for NOT passing param: I want put and I get
Your :method is in the wrong place, it belongs after the first hash, look at the docs for the form reote for
-----Original Message-----
From: Raimon Fs <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
Sent: Tuesday, February 10, 2009 5:08 PM
To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: [Rails] Re: form_remote_for NOT passing param: I want put and I get
2008 Jul 04
2
How to make WHERE foo_id IN () query?
Hi,
There are 3 models:
A has_many :Cs
B has_many :Cs
C belongs_to A and B
I got a single object of A and an array of B objects. How can I get
all Cs that have a_id equal to object A.id *and* b_id that belongs to
an object in Bs array?
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2009 Apr 01
4
permission denied errors with rake db:migrate
I am at a loss here and hoping for some advise on where to begin looking
with a series of errors I am suddenly getting when trying to rake:
"anything goes here" ..
lil-loco:/rails/cem craigmartin$ rake db:migrate
(in /rails/cem)
rake aborted!
Permission denied - /rails/cem/db/schema.rb
This is the current error.
lil-loco:/rails/cem craigmartin$ rake db:schema:load
(in /rails/cem)
--
2006 Apr 03
0
follow_redirect! aborts rake during integration tests
I''m running integration tests on Rails 1.1/Ruby 1.8.4/Windows XP and have
found that any call to follow_redirect! (directly or through
[get|post]_via_redirect) causes rake to abort (see command line output
below). Has anyone else seen this error, or know what might be the trouble?
Thanks!
Tom
C:\dev\h2h>rake test:integration --trace
(in C:/dev/h2h)
** Invoke test:integration
2008 Jul 01
14
rake aborted! Could not find table ...
I am getting a rake aborted error and I suspect that I am missing a
package on my system since the app works for a friend on this
computer.
Here is the terminal output of the error:
anita@anitas-computer:~/sandbox/shovell$ rake db:migrate
(in /home/anita/sandbox/shovell)
rake aborted!
Could not find table ''stories''
(See full trace by running task with --trace)
2006 Oct 31
4
Auto-increment lost during migration.
Hi. I get some strange results when using rename_column on a primary
key in a migration. It seems like the migration script removes the
auto-increment property if you rename a column.
This is a minimal example.
    create_table :foo, :primary_key => :foo_id do |t|
      t.column "name", :string
    end
    # renaming the primary key makes auto-increment disappear.
    rename_column
2009 Dec 29
15
help needed - undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
Hello,
I am trying to deploy my app at the moment, and each time I do, I get
the following error when i run a trace on it:
rake db:migrate --trace
(in /srv/some area/someplaceelse...)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake
2008 Oct 08
9
Plugins and the test environment
Hi guys. I''m writing a plugin for use in the test environment.
However, when I run ``rake test'''' or ``rake spec'''', RAILS_ENV is set
to "development" when my plugin''s init.rb is run.
How do you configure a plugin to load require a file in the test
environment?
Thanks,
Nick
--~--~---------~--~----~------------~-------~--~----~
You