You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I call create action of UsersController, I get error:
NameError - wrong constant name
Object.const_get(camel_cased_word)
^^^^^^^^^^:
app/controllers/users_controller.rb:8:in `create'
That error refers to @user.save in UsersController. I can not figure out what is happenning. I tried to debug this line, but did not understand what is going on. Also I tried authlogic gem right from the GitHub repository, but it didn't help.
The most interesing part that all works as intended when I create new instnce of User and then save it from rails console...
The text was updated successfully, but these errors were encountered:
I am trying setup Authlogic gem with rails 7. I have simple controller:
and simple
User
model:But when I call
create
action ofUsersController
, I get error:That error refers to
@user.save
inUsersController
. I can not figure out what is happenning. I tried to debug this line, but did not understand what is going on. Also I triedauthlogic
gem right from the GitHub repository, but it didn't help.The most interesing part that all works as intended when I create new instnce of
User
and then save it fromrails console
...The text was updated successfully, but these errors were encountered: