> On Oct 23, 2017, at 7:57 AM, Learn Rails <learnrailswit...@gmail.com> wrote:
> 
> Hi all, 
> 
> I am using devise gem in my rails5 api. There is a endpoint for login am 
> using my own endpoint for login and when I try to login it works fine but 
> devise related column are not updating like sign_in_count and ip related. can 
> some on help me how can I do those things and any guide to create api with 
> rails5..
> 
> 

What do you see in your rails log when you log in? Are any errors shown in the 
log? When you say "it works fine", what does that mean? Do you have 

before_action :authenticate_user!

on one of the controllers you are able to navigate to after you log in? If not, 
the fact that you can get to one of the routes in that controller means nothing 
vis-a-vis Devise. 

What do you see on a view where you have added this line of ERB:

<%= debug current_user %>

As to the API, the Rails Guide is a pretty good place to start: 
http://guides.rubyonrails.org/api_app.html

Walter

> 
> Thanks in advance..
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/afaa1ac6-4999-436e-bf2e-7ff02ec0663b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/78DD15C8-4AC3-4BC3-851B-8DEEDE095CC0%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to