I don''t know if this e-mail is too late to be useful or relevant, but I found that the problem>>>>>>>>>>>>>>>Showing /account/signup.rhtml where line #8 raised undefined method `login'' for #<User:0x3ce409b4 @new_record=true, @attributes={}> 5: <%= render_errors @user %><br/> 6: 7: <label for="user_login">Desired login:</label><br/> 8: <%= text_field "user", "login", :size => 30 %><br/> <<<<<<<<<<<<<<<<< is caused by www-data having no access to users table. In postgresql it''s fixed by grant all on "users" to "www-data"; statement. --- One of them, a picture of wronged innocence, pointed the accusing finger at the other and sobbed out, He hit me back first! - Ben Tilly _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
"Belousov, Arkadiy" <belousov_arkadiy-mb1K0bWo544@public.gmane.org> writes:> is caused by www-data having no access to users table. In postgresql > it''s fixed by > > grant all on "users" to "www-data"; > > statement.I''m confused by this. Why would a rails app need access to the database as the userid of the web server? Isn''t the database username and password controlled in config/database.yml? Can you give more details as to what problem you''re trying to solve and why you suspect giving access to your data to the www-data user solves it? -- doug-jGAhs73c5XxeoWH0uzbU5w@public.gmane.org
Depending on the configuration of pg_hba.conf, the db may be setup to only allow connections to/from localhost as the current user. If this is the case, then postgres would only allow connections from the www-data user. On April 18, 2005 10:51 am, Doug Alcorn wrote:> "Belousov, Arkadiy" <belousov_arkadiy-mb1K0bWo544@public.gmane.org> writes: > > is caused by www-data having no access to users table. In postgresql > > it''s fixed by > > > > grant all on "users" to "www-data"; > > > > statement. > > I''m confused by this. Why would a rails app need access to the > database as the userid of the web server? Isn''t the database username > and password controlled in config/database.yml? Can you give more > details as to what problem you''re trying to solve and why you suspect > giving access to your data to the www-data user solves it?-- Scott Brooks Network Operations Manager Binary Solutions Ltd. sbrooks-7+OF9GBfT4Xe9wHmmfpqLOTW4wlIGRCZ@public.gmane.org