-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devise dose not generate a right user model #35
Comments
Which template are you using? I tried with rails3-devise-rspec-cucumber and wasn't able to reproduce the problem. I updated the templates last night. Not sure if this is a problem with the old version or the newest version. Could you try again and tell me if you still see the problem? -- Daniel |
Hi Daniel, I'm using rails3-devise-rspec-cucumber with osx band rvm Il giorno 13/mag/2012 01:28, "Daniel Kehoe" <
|
Hello. I met today with the same problem when using rails3-bootstrap-devise-cancan-template.rb This error occurs when the devise creates a User model. I made a monkey patch, as well as helios: https://github.com/eicca/rails3-application-templates/commits/patch-1 |
Thanks for the patches but since the templates are generated by rails_apps_composer gem, I need to identify which recipe has the bug and patch rails_apps_composer so the bug doesn't come back in the next revision of the templates. Could you tell me which preferences/options you selected when you generated your app from the template? Thank you. |
I showed a link to a fork because I thought it make easier to find you a place where there is an error. I understand that this is the wrong solution. I made it temporarily for their own needs (sorry for the misunderstanding, github automatically names fork like "patch-n", when you change the code in web interface). My options:
|
Sa me options . The "wrong" row id: devise user
|
@eicca and @helios I'm scratching my head because I can't reproduce the error. I tried
with the preferences you detailed above and
I hesitate to add the workaround patch without first identifying the source of the error. Are you both using ruby 1.9.3p125? That could be it. I'm using ruby-1.9.3-p194. |
Ok tomorrow ill try to reinstall everything from scratch
|
Hi Daniel, |
Daniel, I tried to generate a new version with the same options. Here is the resulting log: https://gist.github.com/2692052 I think the problem is in devise. I tried a new application with the devise 2.1.0.rc2. When a new user generated I got the same error with the wrong end. When I changed the devise version to 2.0 - the problem disappeared. I will try to address this problem to devise issues. |
I tried again recently. Now it works fine. I think you can close this issue. Many thanks for this useful templates. |
Yes, the issue was a bug in the Devise 2.1.0.rc2 release. No problems with the Devise 2.1.0 final. |
Thanks
|
note the end attached to remember_me
I suppose devise substitutes everything inside without giving the right space
class User < ActiveRecord::Base
Include default devise modules. Others available are:
:token_authenticatable, :confirmable,
:lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_meend
I just added after generate 'devise user'
<<-RUBY
end
RUBY
end
and fixed it
The text was updated successfully, but these errors were encountered: