16 April 2014

The Ruby Reflector

Topic

Devise

  Source Favicon
By Lucas Mazza of Plataformatec Blog 7 days ago.
Email

…initializer block and maybe remove a configuration step from the gem setup. Adding this to Devise on this pull request was easier than I expected an I suggest you to try it out on your gems as well.

If you want to try to organize your configuration through the secrets.yml without having to update to Rails 4.1 right now, Andrew White backported this feature on the rails-secrets gem for Rails 4.0 apps.

So, if you are dealing with some configuration mess or …

blog.plataformatec.com.br Read
  Source Favicon
By José Valim of Plataformatec Blog 5 months ago.
Email

…private, even if it means loss of usability on features like account confirmation. For such use cases, Devise supports something called paranoid mode, which has been reported to still be vulnerable to enumeration on sign in.

Releases

Only applications using Devise paranoid mode need to update. New releases have been made for Devise branches 3.2 (3.2.1), 3.1 (3.1.2), 3.0 (3.0.4) and 2.2 (2.2.8).

Users running on those branches and cannot upgrade immediately can fix this issue by applying …

blog.plataformatec.com.br Read
  Source Favicon
By Sarah of the evolving ultrasaurus 6 months ago.
Email

…auth not storing our own passwords, so we don't really need the full features of the lovely Devise gem. rails generate scaffold user provider:string uid:string name:string

Add to app/models/user.rb def self.create_with_omniauth(auth) create! do |user| user.provider = auth['provider'] user.uid = auth['uid'] if auth['info'] user.name = auth['info']['name'] || "" end end end

With Rails

ultrasaurus.com Read
  Source Favicon
By nickhammond of Nick Hammond 1 year ago.
Email

Next you'll need the omniauth-37signals gem. I'm using Devise with Omniauth support so I'm going to assume you're doing something similar. Your Gemfile should have the following in regards to devise/omniauth, upgrade versions as needed:

gem "devise", ">= 2.2.3" gem "omniauth-37signals", "~> 1.0.5"

Run bundle install to install the new gems and then run "rails generate devise:install" to create the default …

nickhammond.com Read
  Source Favicon
On Fingertips over 1 year ago.
Email

…fit my problem really well or am I better off writing 20 lines of code myself? For example: pull in Devise or use HTTP basic authentication.

Should I use this particular library? Sometimes using another library allows you to drop one you were using for another feature. For example: use OpenSSL for both certificate signing and random token generation and drop Mongoid::Token.

Check if the new dependency has dependencies itself and weigh it against the benefit of using it. For example: …

fngtps.com Read
  Source Favicon
By developersBox of Videos related to 'Ruby on Rails - Part 1: Hello World' over 1 year ago.
Email

RailsCasts - #210 Customizing Devise

Join me on Blayze! - blayze.com/zywx Here we dive deeper into Devise by customizing how the views, routing, validations, and authentication works.. Original ...

From: developersBox

Views: 562

1 ratings Time: 07:53 More in Education

youtube.com Read
  Source Favicon
By Peter Cooper of Ruby Inside over 1 year ago.
Email
  Source Favicon
By Fabio Akita of RubyLearning Blog over 1 year ago.
Email

But if you want to have everything translated, you have to go the extra mile and actually use Devise's generator to clone its view templates within your Rails app by running rails g devise:views . This will copy the templates in app/views/devise . Keep the templates you want and translate all of them. As an example, take the resend confirmation template: <h2>Resend confirmation instructions</h2>

<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), …

rubylearning.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup almost 2 years ago.
Email

Integrating Devise with Backbone.js - For those of you out on the cutting edge.

Focused Controller: Bringing Real OOP to Rails Controllers - An experiment from one of the Rails core contributors that fills me with trepidation.

How to Securely Bootstrap JSON in a Rails View - Escaping, user-supplied content, and XSS concerns when you're consuming JSON directly.

Amon - Server monitoring, logging, and error tracking all in one package. …

afreshcup.com Read
  Source Favicon
By Peter Cooper of Ruby Inside almost 2 years ago.
Email

Rails Tutorial for Devise with CanCan and Twitter Bootstrap

Daniel Kehoe is known for his detailed Rails tutorials and this time he demonstrates how to create a Rails 3.2 application using Devise with CanCan and Twitter Bootstrap, from start to finish.

Introducing DCell: Actor-based Distributed Objects for Ruby

DCell by Tony Arcieri (of Celluloid fame) is an actor-based distributed object oriented programming framework for Ruby. It's …

rubyinside.com Read