Forum: Ruby on Rails scaffold/db problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
75ee30f19f13bf0218e0b8da0244b8bc?d=identicon&s=25 Nika (Guest)
on 2006-06-10 00:57
When I have:
class MachineController < ApplicationController
def index
render_text "Hello"

def new
render_text "bla"
end shows 'bla'

but, when I have:

class MachineController < ApplicationController

I get:

 Mysql::Error in MachineController#new

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

(I am able to login to db via shell using 'mysql '... with same login
and password as in database.yml.
machines table exists with data inside, user has permission to access
this database.
This topic is locked and can not be replied to.