Rails 4 Devise and send_data with ActionController::Live

61 views
Skip to first unread message

R. Francky

unread,
Jan 16, 2014, 8:50:24 AM1/16/14
to rubyonra...@googlegroups.com
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 :(

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
Reply all
Reply to author
Forward
0 new messages