You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
donapieppo edited this page Nov 14, 2012
·
2 revisions
Week Day Input
In order to get an input with localized week days:
# app/inputs/wday_input.rb
class WdayInput < SimpleForm::Inputs::Base
def input
@builder.select(attribute_name, I18n.t(:"date.day_names").each_with_index.to_a)
end
end