RailsCasts Pro episodes are now free!

Learn more or hide this

NILID's Profile

GitHub User: NILID

Comments by

Avatar

my error when I'm trying to get total_votes:

ruby
PGError: ERROR:  relation "album_votes" does not exist

what's wrong?

Avatar

I found solution, it's simply:

....
<% calendar_for @articles, :year => @date.year, :month => @date.month, :first_day_of_week => 1 do |calendar| %>
...

thanks to all

Avatar

How to sort days in calendar table such as <%= calendar.head('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')%> with correct order of day? I want to make Monday the first day of the week.
please help me!