Forum: Ruby on Rails symlink and 0.14.3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C19a93a1264066e192ba91b7e44b9cfd?d=identicon&s=25 boci (Guest)
on 2005-12-01 23:44
(Received via mailing list)
Hi!

I have a little problem with 0.14.3. I followed the
http://wiki.rubyonrails.com/rails/pages/HowtoUseSy...
but it's not work.
My rails directory is /home/boci/ujautoszalon and I symlinked the public
dir to /home/httpd/htdocs/ujautoszalon2, but it's not find the
database.yml file.

Here is the whole log:

==============================================

 Mysql::Error in Admin/manufacturers#index

Access denied for user: '@localhost' (Using password: NO)

RAILS_ROOT: /home/httpd/htdocs/ujautoszalon2/../config/..
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:510:in
`read'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:152:in
`real_connect'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/mysql_adapter.rb:41:in
`mysql_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`send'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`connection_without_query_cache='
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/query_cache.rb:54:in
`connection='
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:83:in
`retrieve_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:251:in
`connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:741:in
`columns'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:753:in
`column_names'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:766:in
`column_methods_hash'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`each'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:980:in
`method_missing'
#{RAILS_ROOT}/app/controllers/application.rb:10:in `init'

/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:510:in
`read'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:152:in
`real_connect'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/mysql_adapter.rb:41:in
`mysql_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`send'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`connection_without_query_cache='
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/query_cache.rb:54:in
`connection='
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:83:in
`retrieve_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:251:in
`connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:741:in
`columns'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:753:in
`column_names'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:766:in
`column_methods_hash'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`each'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:980:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:354:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:354:in
`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:350:in
`each'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:350:in
`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:339:in
`before_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:331:in
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/benchmarking.rb:69:in
`measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/rescue.rb:82:in
`perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/base.rb:369:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/session_management.rb:116:in
`process'
/usr/lib/ruby/gems/1.8/gems/rails-0.14.3.2969/lib/dispatcher.rb:38:in
`dispatch'
/home/httpd/htdocs/ujautoszalon2/dispatch.cgi:10

/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:510:in
`read'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:152:in
`real_connect'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/mysql_adapter.rb:41:in
`mysql_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`send'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`connection_without_query_cache='
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/query_cache.rb:54:in
`connection='
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/abstract/connection_specification.rb:83:in
`retrieve_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:251:in
`connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:741:in
`columns'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:753:in
`column_names'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:766:in
`column_methods_hash'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`each'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:1021:in
`all_attributes_exists?'
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/base.rb:980:in
`method_missing'
#{RAILS_ROOT}/app/controllers/application.rb:10:in `init'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:354:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:354:in
`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:350:in
`each'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:350:in
`call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:339:in
`before_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/filters.rb:331:in
`perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/benchmarking.rb:69:in
`measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/rescue.rb:82:in
`perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/base.rb:369:in
`send'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0.2969/lib/action_controller/session_management.rb:116:in
`process'
/usr/lib/ruby/gems/1.8/gems/rails-0.14.3.2969/lib/dispatcher.rb:38:in
`dispatch'
/home/httpd/htdocs/ujautoszalon2/dispatch.cgi:10

Request

Parameters: None

Show session dump

---
flash: !ruby/hash:ActionController::Flash::FlashHash {}

Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}

=============================================

Any idea?

Cow
This topic is locked and can not be replied to.