07 May '13, 1am

@chadtalbert

@chadtalbert

class UsersController < Clearance::UsersController def create ... sign_in(@user) end end class ParticipationsController < ApplicationController private def ensure_signed_in unless signed_in? store_location flash[:failure] = 'Please sign in to participate in this deal.' redirect_to sign_in_path end end end module NavigationHelper def authentication_links if signed_in? signed_in_links else signed_out_links end end def signed_out_links [link_to('Sign up', sign_up_path), link_to('Sign in', sign_in_path)] end def signed_in_links [link_to('My Account', edit_user_path(current_user)), link_to('Sign out', sign_out_path)] end end

Full article: http://robots.thoughtbot.com/post/159805420/sgn-up-sign-i...

Tweets

BEGINNERS: Why you (yes, you!) should sign up f...

runnersworld.com 06 May '13, 11pm

Summer is the perfect time to enter a race. Nearly every weekend you're bound to find a local 5-K event. Put one—or two or...

100 Restaurants Sign Up to Recycle Compost in NYC

sustainablebusiness.com 06 May '13, 6pm

More than 100 restaurants have signed on to New York City's Food Waste Challenge, the city's first attempt at a commercial...

Florida- Lions are NOT Taco Meat ! PLEASE SIGN ...

care2.com 11 May '13, 5pm

Saturday May 11, 2013, 2:50 pm With lions fast disappearing anyone that sells any parts of lions now should be prosecuted ...

Singapore, Brazil sign MOU on intellectual property cooperation

Singapore, Brazil sign MOU on intellectual prop...

channelnewsasia.com 05 May '13, 6am

SINGAPORE: Singapore and Brazil have taken steps to strengthen intellectual property (IP) cooperation in the next five yea...

My Arch-Nemesis… The Evil Sale Sign

thefinance.sg 29 Apr '13, 4pm

In my case, it’s my wife, C. Sale signs really know how to do a number on her without her even realizing it..just like mot...

Marathon Refinery Fire in Detroit Another Sign of Environmental Injustice

Marathon Refinery Fire in Detroit Another Sign ...

treehugger.com 03 May '13, 8pm

© Sierra Club / Oliver Bernstein A playground in the 48217 zip code of Detroit. Last Saturday's Marathon Oil refinery expl...

Japan and Turkey sign US$22b nuclear deal

Japan and Turkey sign US$22b nuclear deal

channelnewsasia.com 03 May '13, 5pm

ANKARA - Japan and Turkey on Friday signed a long-awaited deal to build a major nuclear power plant on Turkey's Black Sea ...

Google Kills Meebo Bar to Focus on Google+ Sign-In

searchenginewatch.com 30 Apr '13, 5am

Google will close the Meebo toolbar on June 6 and hopes that users will switch to Google+ and its single sign on. Google a...

Help end cold homes and fuel poverty - please s...

foe.co.uk 03 May '13, 11am

Please add my name to the Energy Bill Revolution coalition's petition calling on the Government to use the money it gets f...

GM Becomes First Automaker To Sign Call For Action On Climate Change #car #green

GM Becomes First Automaker To Sign Call For Act...

greencarreports.com 02 May '13, 3pm

Together, Ceres and BICEP have drafted the Climate Declaration , a document that urges the U.S. government to take action ...

Refined Crossing

Refined Crossing

yankodesign.com 01 May '13, 10am

The Glass Sign is a solar powered pedestrian crossing that is quite funky. The sign stays mostly off and when a pedestrian...

Singapore, Brazil sign memorandum of understand...

ipos.gov.sg 06 May '13, 2pm

Singapore and Brazil sign Memorandum of Understanding on Intellectual Property Cooperation 3 May 2013 - The Intellectual P...

Google+ Sign-In Now Pushing App Activities Dire...

searchengineland.com 30 Apr '13, 3pm

These results will be front and center on the search engine results pages and are built to save clicks by highlighting pop...

Sign up for Monday's Home Brewing Class here:

cafegrumpy.com 17 May '13, 2pm

Your browser does not support JavaScript. Please proceed to HTML version of Café Grumpy’s Online Shop

COMPETITION TIME! Win 1 of 12 @progengolf Chrom...

direct-golf.co.uk 30 Apr '13, 2pm

Enter your email address and password to access your locker and member area. View your past orders, edit your stored addre...