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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/15b4faeb-cb9d-4ade-9dc2-972a324d51cd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to