Displaying 20 results from an estimated 5000 matches similar to: "require specific version of active record"
2011 Jul 26
0
active record wants root password, not sure why ..
When I run a command program (rails 3/ruby 1.9.2) as this:
class MsdsAttr < ActiveRecord::Base
include MsdsAttrModule
belongs_to :attribute_record, :polymorphic => true
has_many :attribute_values, :foreign_key => ''attribute_id''
has_many :alt_values, :as => :alternative
has_many :msds_ingredients
end
ActiveRecord::Base.establish_connection(
:adapter =>
2012 Feb 16
0
Upgrading from 3.2.0 to 3.2.1: Wrong Number of Arguments
Simple spec passes in 3.2.0:
it "destroys an album" do
3.times { Factory(:album, photo_library: @photo_library) }
visit photo_library_path(@photo_library)
find("h3").click_link ''Delete''
find("#notice").should have_content("Album deleted successfully")
Album.count.should eq 2
end
But fails in 3.2.1 with:
1) Albums destroys an
2011 Oct 30
2
Could not find rails (>= 0) amongst [bundler-1.0.21]
Hello, I''m new to Ruby and unix/linux development (although been
building .net apps for years).
I''ve almost completed my trek to install Rails ... looks like I have one
final hurdle. After installing rails I try the ''rails -v'' command and
it fails. Any help here would be deeply appreciated.
Here''s the output from my bash session:
bash-3.2$ ruby
2013 Jan 08
3
[SEC] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!
Hi everybody.
I''d like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released. These releases contain two **extremely critical security fixes** so please update **IMMEDIATELY**.
You can read about the security fixes by following these links:
* [CVE-2013-0155](https://groups.google.com/group/rubyonrails-security/browse_thread/thread/b75585bae4326af2)
*
2013 Jan 08
3
[SEC] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!
Hi everybody.
I''d like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released. These releases contain two **extremely critical security fixes** so please update **IMMEDIATELY**.
You can read about the security fixes by following these links:
* [CVE-2013-0155](https://groups.google.com/group/rubyonrails-security/browse_thread/thread/b75585bae4326af2)
*
2011 May 25
1
can't load hpricot gem in rails 3
This is in windows ..
So from irb, I can load hpricot ok. (ruby 1.8.7)
C:\Users\Laurence\rails-play\plug-test>irb
irb(main):001:0> require ''hpricot''
LoadError: no such file to load -- hpricot
from (irb):1:in `require''
from (irb):1
irb(main):002:0> require ''rubygems''
=> true
irb(main):003:0> require
2011 Jan 23
0
Bundle installs/Cannot run dbconsole
When I run bundle install from the command line I get the following
below
installed in my project directory under sqlite3--with-sqlite3lib Folder.
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing abstract (1.0.0)
Installing activesupport (3.0.3)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.3)
Installing erubis (2.6.6)
Installing
2013 Oct 16
2
Ruby on Rails 3.2.15 has been released!
Hi everyone,
I am happy to announce that Rails 3.2.15 has been released. This is a bug fix
release and includes 56 commits.
This release also contains one security fix that you can read about [here](https://groups.google.com/forum/#!topic/ruby-security-ann/yvlR1Vx44c8). Users are encouraged to upgrade as soon as possible.
## CHANGES since 3.2.14
To view the changes for each gem, please read
2013 Oct 16
2
Ruby on Rails 3.2.15 has been released!
Hi everyone,
I am happy to announce that Rails 3.2.15 has been released. This is a bug fix
release and includes 56 commits.
This release also contains one security fix that you can read about [here](https://groups.google.com/forum/#!topic/ruby-security-ann/yvlR1Vx44c8). Users are encouraged to upgrade as soon as possible.
## CHANGES since 3.2.14
To view the changes for each gem, please read
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2.
Running rspec on it brings about a large amount of these messages:
DEPRECATION WARNING: Passing a template handler in the template name is
deprecated. You can simply remove the handler name or pass render :handlers
=> [:haml] instead. (called from block (2 levels) in <top (required)> at
2012 Aug 19
0
Unsuccessful with using mongodb with rails
I have had a frustrating time trying to get mongodb to work with Rails (works just fine with a plain Ruby app).
cannot load such file -- mongo
The error is traced to the code line <requires ''Mongo''>.
bundle initialize shows I have it all. Any ideas?
Thanks,
Shiv
$ bundle install
Using rake (9.2.2)
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys,
I have a new development server (ubuntu 10).
I have done the following (the versions match my existing development
machine which works fine):
1. installed ruby 1.9.1p378
2. installed ruby gems 1.3.7
3. installed rails 2.3.8 (used "gem install rails -v 2.3.8")
4. manually installed my other gems including sphinx and thinking
sphinx with "gem install ..."
5. ran
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all,
i have installed rails 3 using RVM . the prob is now i have two parallel
projects where one is in 2.3.5 and another is in rails3.
i use Mac o x 10.6.3
mysql :Server version: 5.1.56 MySQL
so can i switch in between rails3 and rails 2.3.8??
this is my gem list...
actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2012 Jul 31
1
puppet doc questions
Does puppet doc require a specific version of any gems (such as rdoc or
rake) to operate?
I''m getting some errors when I try to generate my rdoc now.
# puppet doc --output /var/www/test --modulepath
/etc/puppet/environments/test/modules -m rdoc
RDoc::RDocError is deprecated and will be removed in RDoc 4
Could not generate documentation: uninitialized constant
RDoc::RDoc::Generator
2012 Apr 27
5
How to cap table with active record
We want to use SQL/active record for logging but limit the table size
so that older messages disappear off of the table Some process has to
run periodically to do that.
Suppose I want to keep my table size to not much bigger than
50,000,000 rows or so. What is the easiest, most efficient way to
delete any extra rows that there may be ? This is an SQL/active record
problem I have not encountered
2011 Jan 06
4
Not able to insert value in rails console
I am using authlogic for authentication in rails 3.0.3 with ruby 1.9.2
Using activerecord-sqlserver-adapter (3.0.5)
windows with sqlserver database
when i create user details in rails console, i am getting below error,
>User.create(:login=>''test'',:password=>''test123'',:password_confirmation=>''test123'')
2010 Dec 08
1
NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)
Thanks to Rails developer team.
I tried Rails3 along this guide:
Ruby on Rails Guides: Getting Started with Rails
http://edgeguides.rubyonrails.org/getting_started.html
and I met the problem described as following.
...Any ideas?
===========
Environment:
===========
$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin9.8.0]
$ rails -v
Rails 3.0.3
===========
Steps for reproduce:
2010 Aug 13
2
Rails 3 / ActiveModel for Credit Card information?
When submitting billing information in the past I''ve always used
attr_accessor for credit card details as they should not be saved in
the database. In addition I always end up storing the card
expiration date so that the date form helper works correctly.
With Active Model it seems logical to create a CreditCard class to
hold this data instead.
**1st issue.**
It seems there still
2010 Apr 23
3
rails-3.0.0.beta3 install error on ri 'lib' ENOENT
Hi,
I was getting an odd error installing rails-3.0.0.beta3 on a fresh
Ubuntu 10.04 install. The same exact error was occurring on my Ubuntu
9.10 install, so I''m sure it isn''t something specific to the Ubuntu
version (nor beta for that matter).
This is the error:
mike@ubuntu:~/rubygems-1.3.6$ sudo gem1.9.1 install rails --pre
Successfully installed activesupport-3.0.0.beta3
2012 Aug 05
0
ActiveRecord::Validator vs ActiveModel::Validator
I know that there is an ActiveModel Validator class
https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validator.rb
which is used for the class level validation macros.
But I didn''t find a an ActiveRecord Validator class.
From my understanding in Rails 3, validations have been moved into
ActiveModel to leave ActiveRecord as an ORM.
So now I see this Rails 3 code