On 2 Dec 2008, at 18:04, Srilatha Bhuvanapalli wrote:
> > Frederick Cheung wrote: >> On 2 Dec 2008, at 17:50, Srilatha Bhuvanapalli wrote: >> >>>>> >>>> Sounds like you're using a version of rails older than 2.0 >>>> >>>> Fred >>> >>> My version of rails is 2.1.2 >>> srilatha-bhuvanapallis-macbook-pro:contacts Latha$ rails -v >>> Rails 2.1.2 >> >> but is that app set to use an old version of rails (eg because it's >> frozen into vendor/rails or because RAILS_GEM_VERSION is set ) ? >> And of course seeing the actual code producing an error always helps. > > Could I please how to check if my app to set to old version of rails? > The easiest way is to run script/console or script/server - they will tell you what version of rails is being used. > Below is my database.yml file: > > # MySQL (default setup). Versions 4.1 and 5.0 are recommended. > # > # Install the MySQL driver: > # gem install mysql > # On MacOS X: > # gem install mysql -- --include=/usr/local/lib > # On Windows: > # gem install mysql > # Choose the win32 build. > # Install MySQL and put its /bin directory on your path. > # > # And be sure to use new-style password hashing: > # http://dev.mysql.com/doc/refman/5.0/en/old-client.html > development: > adapter: mysql > database: addressnote > username: root > password: changeme > socket: /tmp/mysql.sock > > # Warning: The database defined as 'test' will be erased and > # re-generated from your development database when you run 'rake'. > # Do not set this db to the same as development or production. > test: > adapter: mysql > database: addressnote_test > username: root > password: > socket: /tmp/mysql.sock > > production: > adapter: mysql > database: addressnote_production > username: root > password: > socket: /tmp/mysql.sock > > Any help would be appreciated. > > Thanks > Latha > -- > Posted via http://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---