Displaying 1 result from an estimated 1 matches for "trialcontroller".
Did you mean:
totalcontroller
2006 Feb 17
4
Need Help with Globalize Plugin
...vironment.rb:
include Globalize
controllers/application.rb:
class ApplicationController < ActionController::Base
Locale.set_base_language(''en-US'')
end
models/sample.rb
class Trial < ActiveRecord::Base
translates :name
end
sample_controller.rb
class TrialController < ApplicationController
def index
Locale.set(''en-US'')
Trial.create(:name => ''One'')
Locale.set(''es-ES'')
trial = Trial.find(1)
trial.name = ''Uno''
if trial.save
render_text(&q...