Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- @user_session = UserSession.new(params[:user_session])
- if @user_session.save
- flash[:notice] = "Successfully logged in."
- respond_to do |wants|
- wants.html { redirect_back_or_default root_url }
- wants.js { render :js => "FB.Connect.showPermissionDialog('email');" } #if user hasn't activated yet the messages.
- end
- else
- render :action => 'new'
- end
- end
Add Comment
Please, Sign In to add comment