# Rails 2 and Rails 3 in the same gemset leads to errors

**URL:** <https://www.ruby-forum.com/t/rails-2-and-rails-3-in-the-same-gemset-leads-to-errors/193234>\
**Category:** Rails\
**Created:** [August 13, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/rails-2-and-rails-3-in-the-same-gemset-leads-to-errors/193234 "2010-08-13T20:02:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![turkan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e8c25b/32.png) [@turkan](https://www.ruby-forum.com/u/turkan)\
**Post date:** [August 13, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/rails-2-and-rails-3-in-the-same-gemset-leads-to-errors/193234/1 "2010-08-13T20:02:27Z")

</div>

Hi.

I am pretty new to ruby (and those gems) and rails… Until now I  
thought that all rails application have some kind of integrated  
version management (RAILS\_GEM\_VERSION in Rails 2 and gem ‘rails’ in  
Rails 3). And therefore I thought that having Rails 2 and Rails 3 in  
the same gem repository (in my case gemset under rvm) wouldn’t be a  
problem. But during installing Redmine I figured out that it can lead  
to problems. When Rails 2 and Rails 3 are in the same gemset Redmine  
cashes on some pages that when only Rails 2 is in the gemset doesn’t  
happen. So it seems that Redmine does use some things of the Rails 3  
libraries even though it specifies the correct RAILS\_GEM\_VERSION of  
2.3.5. Why that?

Best regards,  
Kai

The error trace:

Processing MyController#account (for x.x.x.x at 2010-08-13 17:15:52)  
[GET]  
Parameters: {“action”=\>“account”, “controller”=\>“my”}  
Rendering template within layouts/base  
Rendering my/account  
DEPRECATION WARNING: using %d in messages is deprecated; use {{count}}  
instead… (called from interpolate at /var/www/vhosts/  
[mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.5/lib/](http://mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/activerecord-2.3.5/lib/)  
active\_record/i18n\_interpolation\_deprecation.rb:17)

ActionView::TemplateError (missing interpolation argument in “%m/%  
{count}/%Y %I:%M %p” ({:object=\>Fri Aug 13 16:15:41 +0200 2010}  
given)) on line #4 of app/views/my/\_sidebar.rhtml:  
1:

### \<%=l(:label\_my\_account)%\>
  
2:  
3: 

\<%=l(:field\_login)%\>: **\<%= @user.login %\>**  
  
4: \<%=l(:field\_created\_on)%\>: \<%= format\_time(@user.created\_on) %\>

  
5:  
6:  
7: 
#### \<%= l(:label\_feeds\_access\_key) %\>

```
/var/www/vhosts/mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/

```

i18n-0.4.1/lib/i18n/backend/base.rb:186:in  
`interpolate_without_deprecated_syntax' /var/www/vhosts/mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/ i18n-0.4.1/lib/i18n/backend/base.rb:49:in `translate’  
/var/www/vhosts/mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/  
i18n-0.4.1/lib/i18n.rb:152:in `t' /var/www/vhosts/mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/ i18n-0.4.1/lib/i18n/backend/base.rb:62:in `localize’  
/var/www/vhosts/mydomain.org/.rvm/gems/ruby-1.8.7-p299/gems/  
i18n-0.4.1/lib/i18n.rb:231:in `l' lib/redmine/i18n.rb:48:in `format\_time’  
app/views/my/\_sidebar.rhtml:4:in  
`_run_rhtml_app47views47my47_sidebar46rhtml_locals_object_sidebar' app/views/my/account.rhtml:59:in `\_run\_rhtml\_app47views47my47account46rhtml’  
app/helpers/application\_helper.rb:764:in `content_for' app/views/my/account.rhtml:58:in `\_run\_rhtml\_app47views47my47account46rhtml’  
/var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/  
1.8/webrick/httpserver.rb:104:in `service' /var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/ 1.8/webrick/httpserver.rb:65:in `run’  
/var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/  
1.8/webrick/server.rb:173:in `start_thread' /var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/ 1.8/webrick/server.rb:162:in `start’  
/var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/  
1.8/webrick/server.rb:162:in `start_thread' /var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/ 1.8/webrick/server.rb:95:in `start’  
/var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/  
1.8/webrick/server.rb:92:in `each' /var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/ 1.8/webrick/server.rb:92:in `start’  
/var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/  
1.8/webrick/server.rb:23:in `start' /var/www/vhosts/mydomain.org/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/ 1.8/webrick/server.rb:82:in `start’

Rendering /var/www/vhosts/mydomain.org/rails/redmine-1.0/public/  
500.html (500 Internal Server Error)
