Displaying 8 results from an estimated 8 matches for "authenticate_us".
Did you mean:
authenticate_user
2013 Feb 14
1
create object after before_filter :authenticate_user!
hi
I use devise and cancan
my model
class PostsController < ApplicationController
before_filter :authenticate_user!, only: [:create, :update, :destroy]
...
end
so an unauthentificate user can access new post form. Now when
unauthentificate user submit new or edit forms, he is redirected to login
form. But when he logs in, his post is not save in database. Is there
anythings to do such as callback if I wan...
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb?
So, for example, you could control authentication for all of the
controllers in an app.?
Obviously, you would need a way to reference actions by controller
within this "global before-filter".
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2012 Dec 03
2
Stop User from Changing URL
I have an authentication and autherization system built on the same
lines outlined by Michael Hartl, rails tutorial.
Here is the employees_controller.rb:
class EmployeesController < ApplicationController
before_filter :signed_in_employee, only:
[:index, :edit, :update]
before_filter :correct_employee, only:
[:edit, :update]
etc
etc
2011 Jul 30
2
Get the current user as Json with Devise
...each request) I want to get a response back with the user
info, like user ID, email (not password) etc.
- So, is there a way to do this out of the box with Devise?
If not I guess I could just create a "login" controller with an
"index"-action that just has:
before_filter :authenticate_user!
respond_to :json
...
respond_with current_user
...
So when I do a request from my app to http://example.com/login/ Devise will
return an error by default if the username and password are incorrect, and
if the credentials are correct it outputs the user object as JSON.
Are there any issues...
2020 Jun 13
2
include in smb.conf
Hi Rowland
>> I have 2 DC Samba 4 (migrated from Windows 2008 Server) and the users'
>> Home folders are stored on the new Samba 4 file server.
But where are they stored, what is the path ?
/STORAGE/Usuarios$
Here is my smb.conf:
cat /etc/samba/smb.conf
[global]
netbios name = FILESERVER1
workgroup = EMPRESA
security = ADS
realm = EMPRESA.COM.BR
username map =
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
2012 Sep 04
2
How to get contact list from yahoo in rails using OAuth
I can successfully get the contacts from google using OAuth gem in rails.
my gmail configuration is :
:google=>{
:key=>"***",
:secret=>"***",
:expose => true,
:scope=>"https://www.google.com/m8/feeds/"
}
now i want to get contact from yahoo and hot mail. How to get that contact
I have given following configuration in my
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