Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion confusion after rails upgrade
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Baldock  
View profile  
 More options May 4 2012, 6:56 am
From: Michael Baldock <li...@ruby-forum.com>
Date: Fri, 04 May 2012 12:56:28 +0200
Local: Fri, May 4 2012 6:56 am
Subject: confusion after rails upgrade
Hi all,

I'm a periodic ruby / rails user, every time I come back to it I end up
feeling unsure about what's going on, I'm hoping someone can clarify!

I have a project that I've used as a 'template' project for a while,
it's called users_with_logon and it basically has some authentication
set up for normal users and admin users.

What's important for this question is that it was made using rails 3.0.0
about a year ago.

I'm now working at a new place of work, and setting up ROR again on a
different machine, and cant get it working. From looking at the site
http://rubyonrails.org/download I want to start using Ruby 1.9.3, and
Rails 3.2.

I've installed ruby 1.9.3 using rvm, and set up a gemset called
1.9.3@rails3

whilst using this gemset I've installed rails with 'gem install rails'

From any random directory a terminal output looks like this :

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
$ rails -v
Rails 3.2.3

However when I go into the root directory of the 'users with logon'
rails app template I built a year ago I get

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
$ rails -v
script/rails:6:in `require': cannot load such file -- rails/commands
(LoadError)
  from script/rails:6:in `<main>'

Can anyone explain why the system cannot find rails from within my old
app?

I want to make the next app as up to date as possible, but would rather
not copy all the code over, what's the best way to update my old users
with logon app so that it runs on my 1.9.3 / 3.2.3 system?

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.