Displaying 13 results from an estimated 13 matches for "rememberable".
Did you mean:
memberable
2011 Jun 13
0
Devise Authorization Error
...resources :admin
end
# UsersController
devise_for :users, :path_names => {:sign_in => ''login'', :sign_out =>
''logout''}
--- END routes.rb ---
--- admin.rb (Model) ---
class Admin < ActiveRecord::Base
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :password_confirmation, :first_name, :last_name, :superadmin
end
--- END admin.rb ---
--- new.html.erb (The login form) ---
<div class="login_container">
<div class="title_container">Administrator Logi...
2011 Jun 11
1
Having a problem adding a foreign key
...< ActiveRecord::Base
belongs_to :user
end
USER MODEL
class User < ActiveRecord::Base
has_many :books
# Include default devise modules. Others available are:
# :token_authenticatable, :lockable, :timeoutable and :activatable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation,:firstname,:lastname,:school,:major,:sex,:zipcode
end
ROUTE
Campus::Application.routes.draw do
get "book/index"
get "book/e...
2012 Feb 04
0
ActiveRecord Associations not working in RSpec with Devise
Hi everyone,
I have the following classes:
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable, :timeoutable,
:recoverable, :rememberable, :trackable, :validatable
has_many :comments, :dependent => destroy
...
end
class Comment < ActiveRecord::Base
belongs_to :user
belongs_to :commentable, :polymorphic => true
...
end
In rails console, I can successfully create a new comment via user:
> @attr = { :title => &q...
2013 Mar 07
0
custom table_name for table users with devise
...seems to not work
class User < ActiveRecord::Base
rolify
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable, #:confirmable,
:recoverable, :rememberable, :trackable, :validatable
def self.table_name
debugger
''franceusers''
end
def self.table_name_prefix
debugger
''france''
end
thanks to debugger, I can see that is called but not
self.table_name_prefix. And even if self.table_name if calle...
2015 Dec 03
2
7.2 kernel panic on boot
On 03/12/15 10:39, Greg Lindahl wrote:
> On Thu, Dec 03, 2015 at 11:28:10AM +0100, Leon Fauster wrote:
>> Am 03.12.2015 um 11:08 schrieb Greg Lindahl <lindahl at pbm.com>:
>>> I wanted to help you by making sure that you were on the most recent
>>> version, but, looking at the Centos.org website I was unable to figure
>>> out if 7.2 was the tip. 7.1503? Is
2011 Aug 10
3
STI Devise, remove sign up for admin
Hi,
If I''m using STI with Devise, I have a Admin model inheriting the base
Devise User model. I would like to remove ''registerable'' from the
Admin model but it inherits registerable from the user model. How
would i disable registration for admins?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2010 Mar 16
3
I stream read - stale NFS file handle (reboot of server)
In the old days NFS Shared Path had a static handle (ie a number),
normal based on some number pulled out of the file system/inode.
To fix (well work around) a security issue, for about 10+ years now,
when a NFS server reboots, it generates a new random handle for the NFS
Share. (sever may generate a new random handle per mount request)
The NFS Stale Handle happens when the client is still
2006 Nov 04
0
traits-0.9.2 - better living through metaprogramming
URLS
http://rubyforge.org/projects/codeforpeople/
http://codeforpeople.com/lib/ruby/traits
ABOUT
traits.rb is set of attr_* like methods on steroids, caffeine, and botox. it
encourages better living through meta-programming and uniform access
priciples. traits.rb supports smart inheritence of class attributes and a
fistful of hooks for veryifying and munging attr values.
2012 Oct 29
13
POLL: v2.2 to allow one mail over quota?
Currently if user is 1MB under quota and someone tries to deliver mail that is over 1MB, Dovecot rejects the mail. But smaller mails aren't rejected probably for days. So user might not even realize that they didn't receive one of the mails. Also having a user "almost over quota" is a rather strange state I think.
So what do you think about v2.2 allowing delivery of one last
2006 Nov 04
0
traits-0.10.0
URLS
http://rubyforge.org/projects/codeforpeople/
http://codeforpeople.com/lib/ruby/traits
INSTALL
yes|sudo gem install traits
ABOUT
traits.rb is set of attr_* like methods on steroids, caffeine, and botox.
it encourages better living through meta-programming and uniform access
priciples. traits.rb supports smart inheritence of class attributes and a
fistful of hooks for
2011 Jul 14
10
Devise confusing routes
I had a similar problem yesterday.
I would go to the root of my site and I would get a Too Many Redirects
message. It seems like there was an infinite loop. After struggling for
over an hour yesterday late at night, it seemed like I fixed it.
But now, when I want to create a New User, it''s redirecting me to the
Sign In screen. Seems like I didn''t fix the problem completely.
I
2013 Jun 25
6
creating an account with a username in devise
Hello, all. I have followed these links and have enabled a (current)
user to login with a username:
http://railscasts.com/episodes/209-introducing-devise
http://railscasts.com/episodes/210-customizing-devise
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address
I want to allow a user to sign up with a username but am getting these
2011 Nov 05
13
Adding a site admin user while creating a site
...*belongs_to :sites ########### I have added this
* # Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :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_me,
:role, :site_id
end
------------------------------
*My site model:*
-------------------------------
class Site < ActiveRecord::Bas...