Displaying 2 results from an estimated 2 matches for "base_language".
2006 Jul 03
0
Problem with routes
...ss ApplicationController < ActionController::Base
before_filter :set_locale
def set_locale
if !params[:locale].nil? && LOCALES.keys.include?(params[:locale])
Locale.set LOCALES[params[:locale]]
else
redirect_to params.merge( ''locale'' => Locale.base_language.code )
end
end
end
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
13
tweaking minimum word length?
Hi,
Can Ferret be configured to change the minimum word length of what it
indexes? Right now it seems to drop words 3 characters or less, but
I''d like to include words going down to 2 characters. How would I do
that?
Francis