how to config redmine to use the newest rails

Added by chaninan jitonnom over 11 years ago

I edited the file environment.rb at RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

 RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

but when I start the server the old version number is still displayed

=> Booting WEBrick...
=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2010-02-01 18:37:28] INFO  WEBrick 1.3.1
[2010-02-01 18:37:28] INFO  ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2010-02-01 18:37:28] INFO  WEBrick::HTTPServer#start: pid=2732 port=3000

how to resolve this problem?

Replies (5)

RE: how to config redmine to use the newest rails - Added by Andrew Leaf over 11 years ago

Try typing in at a prompt:

gem install rails -v=2.3.5

Regards,

Andrew

RE: how to config redmine to use the newest rails - Added by chaninan jitonnom over 11 years ago

when I type gem list , it show rails (2.3.5) in the LOCAL GEMS list
but when I start the server the old version number is also still displayed

=> Booting WEBrick...
GLoc v1.1 running in development mode. Strings can be modified at runtime.
=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2010-02-02 03:25:25] INFO  WEBrick 1.3.1
[2010-02-02 03:25:25] INFO  ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2010-02-02 03:25:25] INFO  WEBrick::HTTPServer#start: pid=4040 port=3000

RE: how to config redmine to use the newest rails - Added by chaninan jitonnom over 11 years ago

now I try to remove rails by following commands

gem uninstall rails

so now Rails (2.3.5) is removed from the list
but Rails 2.1.2 display again when start up the server

RE: how to config redmine to use the newest rails - Added by Andrew Leaf over 11 years ago

What happens when you try this:

gem uninstall rails -v=2.1.2
gem install rails -v=2.3.5
rails -v

Also, which version of Redmine do you have installed?

Regards,

Andrew

RE: how to config redmine to use the newest rails - Added by Admins Q3 over 11 years ago

I've published a blog entry with a step by step fresh install from sources of Redmine, building an appliance using Ubuntu, Rails 2.3.5, Apache, Phusion Passenger 2.2.9, Ruby Enterprise and Webmin.

Comments are in spanish, but commands are universal. Take a look at: http://adminsq3.blogspot.com/2010/02/appliance-redmineapachephusion.html

(1-5/5)