16 May '13, 4am

参考になった。 / “ruby on rails - Custom authentication strategy for devise - Stack Overflow”

I found this very helpful snippet in this thread on the devise google group initializers/some_initializer.rb: Warden::Strategies.add(:custom_strategy_name) do def valid? # code here to check whether to try and authenticate using this strategy; return true/false end def authenticate! # code here for doing authentication; # if successful, call success!(resource) # where resource is the whatever you've authenticated, e.g. user; # if fail, call fail!(message) # where message is the failure message end end add following to initializers/devise.rb config.warden do |manager| manager.default_strategies.unshift :custom_strategy_name end

Full article: http://stackoverflow.com/questions/4223083/custom-authent...

Tweets

Ruby on Rails and RubyMotion Authentication Part Two via @lucatironi

Ruby on Rails and RubyMotion Authentication Par...

lucatironi.github.io 20 May '13, 5am

Welcome back to the second part of the tutorial on how to create a mobile ToDo list app for the iPhone with RubyMotion. In...

Your Web-App Technologie Stack

reddit.com 18 May '13, 9pm

always when I bootstrap an webapp it takes me hours to struggle around with different frameworks, helpers and lib's until ...

Devise et Rails 4

news.humancoders.com 11 May '13, 9am

Cette semaine, nous avons sorti la première release candidate de la gem Devise avec le support complet de Rails 4. Cette v...

Deviseのカスタマイズ。OAuthのときはemail入力を不必要にして、""でも可にする ...

qiita.com 14 May '13, 8am

Qiita - A technical knowledge sharing platform for programmers. Search through stocked items Qiita - A technical knowledge...

Tonight’s the night: NWRUG at @madlabuk. Ruby/R...

nwrug.org 16 May '13, 10am

Thursday 16th May - Nils - what are your Options? Tony Hoare, inventor of the null reference, calls it his “billion dollar...

Top Ruby Article: Devise and Rails 4:

blog.plataformatec.com.br 10 May '13, 10pm

This week we released the first release candidate version of Devise that is fully compatible with Rails 4, and we’re bumpi...

New Job Alert: Ruby on Rails developer - Beatpo...

simplyhired.com 15 May '13, 5am

We are looking for a Ruby on Rails developer to join our team full-time in San Francisco. Very well-qualified candidates w...

Vagas p/ Desenvolvedor Ruby on Rails - TpiRH - ...

pessoas.vagas.com.br 16 May '13, 9pm

Talent Group atua no segmento de Tecnologia da Informação há mais de 17 anos, seleciona profissionais com os seguintes req...