Category "ruby-on-rails-3.2"

Why it runs twice when seed in rails?

I just put puts "test" in the seeds file , when I run rake db:seed, I saw there are 2 lines "test"

display list of days in a week in Rails using Date::DAYNAMES

I'm having trouble displaying a list of days in a week in a form. <%= form_for [@hourable, @hour] do |f| %> <% days = [] Date::DAYNAMES.each_with