Hi,
In my project's config/environments.rb I have set
config.time_zone='UTC'.
Whenever a new recorded is added to my mysql database, the "created_at"
and "updated_at" fields are stored as UTC.However, on my console the
result of
Time.now/DateTime.now is in my local timezone, namely IST.
>> Tim
Hi Saurabh,
Thanks for your inputs.But it is still not working.Same error.
Regards,
Anjali
Saurabh Peshkar wrote:
> Hi Anjali,
>
> Try using brace brackets.
>
> <%= select_tag :list_filter, options_for_select({"All" =>
> "all", "Top Contribution" => "top_contributors", "Top Questioners" =>
Hi,
I am using rails 2.3.5 with ruby 1.8.7. On using
options_for_select/options_from_collection_for_select with select_tag I
get the following error:
wrong number of arguments (1 for 0)
This the code I am using in my view:
<%= select_tag :list_filter, options_for_select("All" => "all","Top
Co
3 matches
Mail list logo