Forum: Ruby on Rails scaffold/db problem

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.
75ee30f19f13bf0218e0b8da0244b8bc?d=identicon&s=25 Nika (Guest)
on 2006-06-10 00:57
When I have:
class MachineController < ApplicationController
def index
render_text "Hello"
end

def new
render_text "bla"
end
end

http://127.0.0.1:3000/machine/new shows 'bla'

but, when I have:

class MachineController < ApplicationController
scaffold:machine
end

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.