Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクトでロケールを変更すると、次のようなリンクが表示されます。
http://localhost:8080/someapp/?lang=en
安らかなスタイルでリンクを取得する方法、例:
http://localhost:8080/someapp/en
URLMapping のparam langで定義します。次に例を示します。
"/$lang?/contact_us"(controller: "pages", action: "contact_us")
リンクを正しく生成するには、createLinkを使用します。