Rails 4 Devise and send_data with ActionController::Live

Hi my friends,

Recently I was setting up a Rails 4 app and did some server sent event

1/ There was a bug when I did the usual before_filter :authenticate_user
long as I include ActionController::Live module in any controller class.
ended up moving auth logic in the routes with authenticate :user {}
method and enclosing authenticated routes within the block.

2/ Within the same controllers class including AC::Live , doing
was buggy as well so I moved all actions sending data to another
controller, not really ideal :frowning:

Does any of you ever had those issues ? If so, could you please share
solutions [wich would restore the way devise should be used with filters
rather than auth block in routes].


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs