Sha256: 8c383a98b66130e37cadd139cc172067be9eed6dd7094c71608c989e418e9a78
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
class TranslatablesController < ApplicationController def index @translatables = Translatable.all preload_translations_for(@translatables) end def set_tr require 'faker' @translatable = Translatable.find(params[:id]) @translatable.name_translated = Faker::Lorem.paragraph, params[:lang] @translatable.save! redirect_to "/" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_db_localize-0.0.2 | test/dummy/app/controllers/translatables_controller.rb |
rails_db_localize-0.0.1 | test/dummy/app/controllers/translatables_controller.rb |