26 Mar '12, 6am

#followmejp Railscasts - OmniAuth Part 2: #sougofollow

def create omniauth = request.env["omniauth.auth"] authentication = Authentication.find_by_provider_and_uid(omniauth['provider'], omniauth['uid']) if authentication flash[:notice] = "Signed in successfully." sign_in_and_redirect(:user, authentication.user) elsif current_user current_user.authentications.create!(:provider => omniauth['provider'], :uid => omniauth['uid']) flash[:notice] = "Authentication successful." redirect_to authentications_url else user = User.new user.apply_omniauth(omniauth) if user.save flash[:notice] = "Signed in successfully." sign_in_and_redirect(:user, user) else session[:omniauth] = omniauth.except('extra') redirect_to new_user_registration_url end end end

Full article: http://railscasts.com/episodes/236-omniauth-part-2

Tweets

Alvinology’s Best of Draw Something - Part 2 #d...

alvinology.com 27 Mar '12, 3am

@dk @omysg pinterest copy one hor lolAlvinologist1 hour ago @maybelinesim @claires_flair @daintyflair @_shinekoh who took ...

OHBULAN!: Trailer: Teaser Ke-2 "Twilight: Breaking Dawn - Part 2" Dilancarkan!

OHBULAN!: Trailer: Teaser Ke-2 "Twilight: Break...

ohbulan.com 27 Mar '12, 12am

Masih tertanya-tanya apakah yang sudah terjadi dengan Bella (Kristen Stewart)? Filem terbaru ‘Twilight: Breaking Dawn – Pa...

@8hasin part 2 , part 1

@8hasin part 2 , part 1

runnersrambles.com 25 Mar '12, 1am

where the mental toughness really starts to come in handy and it does. The park is beautiful and I love running there BUT ...

Tech Talk - Saudi Arabian oil production part 2

theoildrum.com 25 Mar '12, 2pm

There is some debate in the main-stream press about the relative causes and impacts of the rising gasoline price on the ov...

Today is ONE month until @thesfmarathon! For an...

runnersrambles.com 25 Mar '12, 1am

Seriously, this recap should be on the SF Marathon website! You explain the course perfectly! I think SF marathon has the ...

ARTICLE: The future of fuel: future of #hydroge...

renewableenergyfocus.com 26 Mar '12, 9am

Electrolysis has a significant role to play in enabling more renewable energy to be accepted by the electricity grid. At t...

Most Important SEO Patents Part 10: Just the Be...

seobythesea.com 26 Mar '12, 2pm

1. Search related patents provide insights into many assumptions that search engines and search engineers hold about searc...

DN Insight: What Rare Earth Shortages Mean for ...

designnews.com 22 Mar '12, 11am

The soaring cost of rare earth oxides (REOs) has forced the price of magnets to rise, driving component manufacturers, mac...

Basic Categories of Stocks and Identifying Them...

thefinance.sg 20 Mar '12, 10am

Basic Categories of Stocks and Identifying Them Correctly for Diversification Purposes Part 2 by Calvin Yeo on March 20, 2...

What Rare Earth Shortages Mean for Engineers, P...

designnews.com 22 Mar '12, 11am

The soaring cost of rare earth oxides (REOs) has forced the price of magnets to rise, driving component manufacturers, mac...

I'm giving a part 5/5 of an @DesignNews webinar...

designnews.com 23 Mar '12, 3pm

Part V: Soft Skills They Don't Teach You in the Manual In this session, you'll learn how soft skills can be enlisted in th...

SEOmoz | What Makes a Link Worthy Post - Part 1:

SEOmoz | What Makes a Link Worthy Post - Part 1:

seomoz.org 26 Mar '12, 5am

I was recently inspired by a post by MikeTek , Examining the Top 150 In-Linked Posts at SEOmoz . While the information was...

OHBULAN!: Teaser: Video 10 Saat Twilight Breaking Dawn - Part 2, Visual "Bella" Berlari!

OHBULAN!: Teaser: Video 10 Saat Twilight Breaki...

ohbulan.com 21 Mar '12, 12am

Video klip berdurasi 14 saat ini turut menampilkan 2 orang lelaki yang kami pasti anda akan cakap mereka berdua “cool”, pa...

Feds spending up to $2 million on hydrogen-stat...

green.autoblog.com 27 Mar '12, 8pm

DOE Offers Up to $2 Million for Hydrogen Fueling Stations Data Collection March 21, 2012 DOE announced on March 13 that up...

Let's do our part in using right disability ter...

todayonline.com 25 Mar '12, 9pm

I AGREE wholly with Nicholas Aw in his letter "How to get disability terminology right" (March 21). His letter is most tim...