Devise is an authentication gem for Ruby-on-Rails. It supersedes previous solutions such as Restful Authentication or Authlogic.
0
votes
0answers
7 views
Email validation failed when using omniauth+twitter+devise
I'm using the code from http://railscasts.com/episodes/235-devise-and-omniauth-revised, the code is in https://github.com/railscasts/235-devise-and-omniauth-revised/tree/master/blog-after
and I get ...
0
votes
0answers
2 views
Devise ajax login breaks when I add a foundation class
Using devise-2.2.4
Rails 3.2.13
Using foundation css
I have a typical devise custom view with
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :remote => ...
0
votes
1answer
16 views
Dismiss Button in Ruby on Rails
i'm using bootstrap and Devise and trying to get a dismiss button on the Flash Messages.
I tried a lot of different stuff but i'm not getting the button to appear right.
My Code for the moment is:
...
0
votes
2answers
25 views
devise: is it possible to sign in user in the model?
My app creates a user in a callback of a model and I can't figure out how to seamlessly sign him in after that, as sign_in helper is available only in the controller.
after_validation do
return ...
0
votes
0answers
8 views
Testing Devise oauth with cucumber for different users
I need to test devise oauth sign in with cucumber. Ive resolved it with common solution
OmniAuth.config.test_mode = true
OmniAuth.config.mock_auth[:instagram] = OmniAuth::AuthHash.new({
...
0
votes
1answer
14 views
adding before_helpers and helper_methods to devise controllers
I have a set of before_helpers and helper_methods that apply to some controllers, including all devise controllers.
What would be the preferred way to declare those before filters?
I tried this ...
0
votes
0answers
10 views
Devise + Omniauth in a mountable engine : undefined method `user_omniauth_authorize_path'
i have been trying to set up my engine with devise+omniauth for authentication. Everything seems OK so far, except when i configure an omniauth provider, such as twitter, the partial ...
0
votes
1answer
15 views
assigning roles in devise/cancan/deviseldap/rolify and using ldap_param_value
Bottom line up front:
How can I assign a role from ldap right away when a user logs in.
I am using devise/cancan/deviseldap/rolify to authenticate users and then hopefully assign a role. I am ...
0
votes
0answers
7 views
Rails RJS prevent form from being submitted does not work
Here is my Javascript (CoffeeScript):
$(document).on 'ajax:success', '.user_modal_form', (e, data, status, xhr) ->
context = $(this)
if data.success
$('button', context).hide()
...
0
votes
0answers
5 views
Devise Guest User to Member
I have a guest user system implemented in my rails application following the advice of the first answer on:
How to create a guest user in Rails 3 + Devise
However, now I want to be able to persist ...
0
votes
1answer
25 views
Calling method from subclass results in “no superclass method `sign_up_params' for …”. Why?
Background
I have subclassed Devise::RegistrationsController to handle User registrations myself with a class named DeviseUsersController.
I need to override the create action - I had previously ...
0
votes
2answers
26 views
Check if current_user is the owner of a resource and allow actions
I have developed a website in Rails and now I have many resources (photos, articles, posts, comments etc..).
In "Application Controller" I check if user is logged. If it isn't, it will be redirect ...
0
votes
1answer
21 views
Accessing a url directly without login
I am considering doing this -
Any url (excecpt those I disallow specifically) can be accessed directly without signing-in, however if you click on any of the links on the page, it will redirect you ...
0
votes
1answer
38 views
How to separate change password from devise form
I am trying to do two things:
1) Change the default "edit user form" - provided with devise - to remove "password" and allow the other fields to be updated without having to enter a password ie ...
0
votes
1answer
55 views
Rails/Mailer - NoMethodError after sending email
I'm fairly new to Rails, so this will likely end up being something obvious; however I've just spent the better part of a day pulling my hair out over this issue.
I have a rails app which I've been ...