On 18 October 2013 13:02, Денис Чурбанов odmin.o...@gmail.com wrote:
class WebsocketController WebsocketRails::BaseController
private
def authenticate?
unless current_user.token == message[:token]
current_redirect_to 'home/index'
false # that here we need to do to stop
On Fri, Oct 18, 2013 at 7:02 AM, Денис Чурбанов odmin.o...@gmail.com wrote:
From the documentation: If you call render, head or redirect_to from a
before_action, the filter chain will be halted, but I have a different
situation:
current_redirect_to and current_html_insert - are methods of
Thank you, this is what you need!
суббота, 19 октября 2013 г., 0:07:23 UTC+4 пользователь Jordon Bedwell
написал:
On Fri, Oct 18, 2013 at 7:02 AM, Денис Чурбанов
odmin...@gmail.comjavascript:
wrote:
From the documentation: If you call render, head or redirect_to from a
before_action,
3 matches
Mail list logo