en.yml
log_in_message_html: "This is a text, with a %{href} inside."
log_in_href: "link"
login.html.erb
<p> <%= t("log_in_message_html", href: link_to(t("log_in_href"), login_path)) %> </p>
More Related Contents:
- Passing variables inside rails internationalization yml file
- Fall back to default language if translation missing
- How to use the I18n fallback features in Rails 3
- Changing the default date and time format in Rails 4
- Rails: store translations in database
- Format a string containing Phone numbers
- SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
- How to understand nil vs. empty vs. blank in Ruby
- Best way to load module/class from lib folder in Rails 3?
- Ruby on Rails Server options [closed]
- Rails – Strong Parameters – Nested Objects
- Rails 4: List of available datatypes
- How to sort text in sqlite3 with specified locale?
- Rails: Access to current_user from within a model in Ruby on Rails
- How to redirect to previous page in Ruby On Rails?
- Heroku Postgres Error: PGError: ERROR: relation “organizations” does not exist (ActiveRecord::StatementInvalid)
- Ruby on Rails: Where to define global constants?
- Ruby: SQLite3::BusyException: database is locked:
- Rails update_attributes without save?
- how to solve “ruby installation is missing psych” error?
- Detect MIME type of uploaded file in Ruby
- How to rename rails controller and model in a project
- exif image rotation issue using carrierwave and rmagick to upload to s3
- Creating a PostgreSQL sequence to a field (which is not the ID of the record)
- Ruby on rails – Reference the same model twice?
- What does do in rails erb?
- What does rake db:test:prepare actually do?
- Cannot install pg gem in Mavericks with Postgres.app
- Is there a way to avoid automatically updating Rails timestamp fields?
- Rails.env vs RAILS_ENV