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
within.

1/ There was a bug when I did the usual before_filter :authenticate_user
as
long as I include ActionController::Live module in any controller class.
I
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
send_data
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
any
solutions [wich would restore the way devise should be used with filters
rather than auth block in routes].

Thanks

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