Rails-1.1.0-RC1 tagged today (4010)


#1

Looks like Rails 1.1.0 RC1 is finally here:

http://dev.rubyonrails.org/changeset/4010


#2

Conductor wrote:

Looks like Rails 1.1.0 RC1 is finally here:

http://dev.rubyonrails.org/changeset/4010

Rails 1.1-RC1 announcement and instructions here:

http://weblog.rubyonrails.org/


#3

I’ve not been on edge at all.

In my app directory I did

rake freeze_edge
rake rails:update
svk status (showed only vendor/rails, no updated scripts)
rake

And I get a ton of errors, which break down to two, actually:

NoMethodError: undefined method scoped_methods=' for Buyer:Class NoMethodError: undefined methodclear_connection_cache!’ for
ActiveRecord::Base:Class

Details:

~/Sites/sofarails: ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0]

~/Sites/sofarails: psql --version
psql (PostgreSQL) 8.1.2
contains support for command-line editing

~/Sites/sofarails: ls vendor/plugins
rails_cron_0.2.2 rails_tidy-0.1 rav
textmate_backtracer-1.1

Dependencies:

require ‘creditcardverifier’
require ‘digest/sha1’

require_gem ‘acts_as_paranoid’
require_gem ‘acts_as_taggable’
require_gem ‘acts_as_versioned’
require_gem ‘money’
require_gem ‘payment’
require_gem ‘sentry’

This is Mac OS X 10.4.5 (PPC)

Any ideas?


– Tom M.


#4

I followed the directions and the ‘rails --version’ command also
reports 1.0.0. I’m guessing they’re not going to up the version number
until it’s final.

I tried some of the new goodies, listed here:

http://scottraymond.net/articles/2006/02/28/rails-1.1

and they work. The new .average, .sum, and .group calculations are nice!

jt


#5

On 3/21/06, Tom M. removed_email_address@domain.invalid wrote:

psql (PostgreSQL) 8.1.2

Rails 1.1-RC1 announcement and instructions here:

http://weblog.rubyonrails.org/


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

Try upgrading to Ruby 1.8.4

-Kyle


#6

Hi,

I followed the install instructions on blog (gem install rake, gem
install rails --source http://gems.rubyonrails.org) . When I query
‘rails --version’ I get ‘Rails 1.0.0’. I am using os x 10.4.5 ppc and
darwin ports. At first I couldn’t get rails to install (rake didn’t
understand the --source option). There was a rake in /usr/bin so I go
rid of that and made an ln from the /opt directory. So the install
worked but rails doesn’t appear to be updated. I assume there’s an
updated version in my drive, but if anyone has any ideas about how to
get the new version to be the one that gets invoked please let me know.

Thanks,
Sean


#7

~/Sites/sofarails: ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0]

Try upgrading to Ruby 1.8.4

Apparently I missed that… But i was getting the same errors, and an
upgrade to 1.8.4 was my fix.


#8

On 3/21/06, Tom M. removed_email_address@domain.invalid wrote:

psql (PostgreSQL) 8.1.2

Rails 1.1-RC1 announcement and instructions here:

http://weblog.rubyonrails.org/

Tom,

Please upgrade to the plugin versions of acts_as_paranoid, versioned,
and sentry. I’ve quit updating the gems because plugins integrate
well with rails. rails 1.1 added nested scopes which makes some of
the hackery in acts_as_paranoid unnecessary (which is why you’re
seeing those messages).


Rick O.
http://techno-weenie.net


#9

On Mar 21, 2006, at 9:23 PM, Rick O. wrote:

Please upgrade to the plugin versions of acts_as_paranoid, versioned,
and sentry. I’ve quit updating the gems because plugins integrate
well with rails. rails 1.1 added nested scopes which makes some of
the hackery in acts_as_paranoid unnecessary (which is why you’re
seeing those messages).

Thanks to Rick’s help, I’ve gotten past that problem.

However I was using the acts_as_taggable gem, but it seems that there’s
now a acts_as_taggable plugin that has several advantages, so I took
this
opportunity to switch as I’ve not implemented tagging yet.

I added a new migration to create (and drop) the new tag and taggings
tables (got the info from the Wiki and later confirmed against Rails
Recipes)

Now I cannot migrate:

~/Sites/sofarails: rake --trace db:migrate
(in /Users/tmornini/Sites/sofarails)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Unknown key(s): polymorphic
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/activesupport/
lib/active_support/core_ext/hash/keys.rb:48:in assert_valid_keys' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/ active_record/associations.rb:519:inbelongs_to_without_reflection’
(eval):5:in belongs_to' /Users/tmornini/Sites/sofarails/config/../vendor/plugins/ acts_as_taggable/lib/tagging.rb:3 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/activesupport/
lib/active_support/dependencies.rb:149:in require' /Users/tmornini/Sites/sofarails/config/../vendor/plugins/ acts_as_taggable/init.rb:4:inload_plugin’
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/railties/lib/
initializer.rb:348:in load_plugin' /Users/tmornini/Sites/sofarails/config/../vendor/rails/activesupport/ lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings’
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/railties/lib/
initializer.rb:348:in load_plugin' /Users/tmornini/Sites/sofarails/config/../vendor/rails/railties/lib/ initializer.rb:158:inload_plugins’
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/railties/lib/
initializer.rb:158:in load_plugins' /Users/tmornini/Sites/sofarails/config/../vendor/rails/railties/lib/ initializer.rb:102:inprocess’
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/railties/lib/
initializer.rb:42:in run' /Users/tmornini/Sites/sofarails/config/../config/environment.rb:10 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
/Users/tmornini/Sites/sofarails/config/…/vendor/rails/activesupport/
lib/active_support/dependencies.rb:149:in require' /Users/tmornini/Sites/sofarails/config/../vendor/rails/railties/lib/ tasks/misc.rake:3 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:inexecute’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:202:ininvoke’
/usr/local/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:ininvoke’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:209:in
invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in
invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:201:ininvoke’
/usr/local/lib/ruby/1.8/thread.rb:135:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:ininvoke’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/bin/rake:7
/usr/local/bin/rake:18


#10

Thanks, Rick!


– Tom M.


#11

On Mar 22, 2006, at 6:51 PM, Rick O. wrote:

lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys’
and polymorphic joins. They’re by two different authors and aren’t
meant to be compatible really.

Just a heads-up.

Thanks for the eyes on the path, Rick.

I know the acts_as_taggable difference, and have decided to go with
the polymorphic version (plugin)

I resolved the problem by removing the 1.0 gems, and installing the
1.1 gems.

I’m not really clear why rake freeze_edge is broken. Isn’t it
supposed to lock up the Rails version independent of the gems?


– Tom M.


#12

Hi I just updated to Rails 1.1 but when I try the “rake rails:update”
command I get this error "rake aborted! no rakefile found looking in …
" My rails version is 1.1 but rake is not working. Anyone know what Im
doing wrong. Im on XP and running Instant Rails. Thanks,

J


#13

lib/active_support/core_ext/hash/keys.rb:48:in assert_valid_keys' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/ active_record/associations.rb:519:inbelongs_to_without_reflection’
(eval):5:in `belongs_to’

Look at those paths: you have one from vendor/rails/activesupport,
and another from the activerecord gem. You’re having an issue w/ one
of your plugins probably.

The acts_as_taggable plugin in the rails svn is not the same as the
gem. The gem uses habtm joins, while the plugin uses has_many :through
and polymorphic joins. They’re by two different authors and aren’t
meant to be compatible really.

Just a heads-up.


Rick O.
http://techno-weenie.net