21 May 2013

The Ruby Reflector

Topic

Devise

  Source Favicon
Email

This week we released the first release candidate version of Devise that is fully compatible with Rails 4, and we're bumping its version to 3.0. This version completely drops support for Rails 3.1 and Ruby 1.8.7, only keeping compatibility with both Rails 3.2 and Rails 4, running with Ruby 1.9.3 and 2.0.

This rc version took some time to get ready, we've been running a rails4 branch for some time already and one of the reasons was because of the changes required to make …

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

In case you are using a Devise series older than the ones listed above, recommendations are provided below back to v1.2 series. Regardless, an upgrade to more recent versions is advised.

Versions affected

We checked all Devise versions released in the previous two years and recommendations follows as below.

v1.5, v2.0, v2.1 and v2.2 series

You can upgrade to any of v2.2.3, v2.1.3, v2.0.5 and v1.5.4. In case an upgrade is not feasible, please add the following patch to config/initializers/devise_patch.rb …

blog.plataformatec.com.br Read
  Source Favicon
On Fingertips 4 months 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 Peter Cooper of Ruby Inside 10 months ago.
Email
  Source Favicon
By Fabio Akita of RubyLearning Blog 10 months 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 1 year 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 1 year 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
  Source Favicon
By Claudio of DevInterface Blog over 1 year ago.
Email
  Source Favicon
By Mike Gunderloy of A Fresh Cup over 1 year ago.
Email

…Access control system for Rails 3 that extends CanCan and integrates with Devise, among other things.

Who Needs Process? - I don't think I've tried every possible software process, but I've tried a hell of a lot of them. These days, I'm inclined to agree with Ted Dziuba's promotion of anarchy in this article over most anything else.

Minitest Quick Reference - Handy, especially if you haven't dug into Ruby 1.9's default testing …

afreshcup.com Read
  Source Favicon
By Patrick Lenz of Patrick Lenz over 1 year ago.
Email

Now, Devise 1.5 requires OmniAuth 1.0 while the 1.4.x series was still on OmniAuth 0.3.x and the latter combination worked flawlessly before. I started circling around this problem by checking the new omniauth-twitter gem's issue tracker on GitHub and came across this issue , which sounded similar enough. In it, one of the commenters mentioned an overly greedy exception handling in the omniauth-oauth gem masking the real problem in that developer's own application code. …

poocs.net Read