search for: user_signed_in

Displaying 5 results from an estimated 5 matches for "user_signed_in".

2011 Jun 11
7
"Stack level too" deep with @controller.hi
Hi again, sorry for many questions. In mi HomeController, I have the "hi" method, in this method I use an "if" for show a different message for a registered user or a guest. When I call in "home/index" my method "hi", show me this error message: "Stack level too deep" class HomeController < ApplicationController def hi if (current_user)
2011 Nov 02
1
getting devise to return json data when signing out
Hi all, In curl (the command line program), I can successfully log a user in using devise: def create respond_to do |format| format.json { if user_signed_in? return render :json => {:success => true, :errors => ["Already logged in."]} end resource = warden.authenticate!(:scope => resource_name, :recall => "#{controller_path}#failure") return sign_in_and_redirect(resource_name,...
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
2013 Apr 12
0
Rails Log user in after view rendered
...rom that views an account will be generated an the user will be logged in. And an overview page will be shown (create page) But if he is already logged in and applies the sentence "we have send your password to ... cannot be shown in my view. So I have made the following: <% unless user_signed_in? %> <div class="row"> <div class="three columns"> <strong><%= t("apply.create.labels.password") %></strong>: </div> <div class="nine columns"> <%= t(...
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