I would like to exit an action, however, I cannot use return because it should be called from another method:
flash[:error] = 'you must be logged for view this page'
Is there any elegant way to exit from action :click and don't process "other things"?
I could use:
requires_valid_login or return
However I don't like this.