Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

NILID's Profile

GitHub User: NILID

Comments by


my error when I'm trying to get total_votes:

PGError: ERROR:  relation "album_votes" does not exist

what's wrong?


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


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!