JimmyJamNobody

u/JimmyJamNobody


r/rubyonrails•

Just to clarify, I meant rails v3.2.13

The page: http://guides.rubyonrails.org/v3.2.13/getting_started.html

In the 10 Security section, the http_basic_authenticate_with does not ask for authentication for new posts. It does work when you are removing comments, but that is a separate and slightly different line of code. I'm going to move on, but any help here would be appreciated.

.

comments controller (authenticate working)

class CommentsController < ApplicationController
    http_basic_authenticate_with :name => 'dhh', :password => 'secret', :only => :destroy
    def create
        @post = Post.find(params[:post_id])
        @comment = @po
215

r/html5•

I just hit a roadblock developing a fast-twitch html5 game. Websockets only use TCP which are just way too slow for this. I'm aware that webRTC datachannels are coming along but they seem to be soley p2p. We need UDP connections with servers! Why don't we have this already? It's insane.

Edit: I'm by no means a master in this subject, but here is why I feel that we need UDP for HTML5 gaming. The use-case for UDP is a situation where you need packets as fast as possible and you don't care if a few get lost. A racing game or a shooting game's state packages are a good example because you need the game to be fast enough to react quickly, and you want those states to arrive asap. But if some

816


You've reached the end of this feed.