ログインしていないユーザーが、次のような remoteFunction を含むリンクをクリックした場合:
<a href="#" onclick="${remoteFunction(
controller: 'book',
action: 'count',
id: book.id,
onSuccess: 'updateBookCount(data,textStatus);'
)}">
add count to book
</a>
アクションの場合:
@Secured("ROLE_USER")
def count() { ... }
ログインしていない場合、ユーザーをログインページにリダイレクトするにはどうすればよいですか?