On 1 April 2012 09:34, bingo bob <[email protected]> wrote: > Colin Law wrote in post #1054363: >> On 29 March 2012 17:17, bingo bob <[email protected]> wrote: >>> >>> devise :database_authenticatable, :registerable, >>> NameError: uninitialized constant User::UserName >> What is that ORDER BY lower(username) doing? I don't see where that >> is coming from in your code. >> >> What happens if you do User.first >> >> Colin > > > In the User model I have... > default_scope order('lower(username) ASC')
I see looking back at your code that you have class UserNames < ActiveRecord::Base That should be UserName (singular) in user_name.rb with table name user_names Colin -- 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 [email protected]. 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.

