faelvi...@gmail.com
unread,Jun 1, 2012, 12:02:44 PM6/1/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Event Calendar Plugin
I am developing an application for days and times for school and I'm
using the gem EventCalendar, but I have a problem in time to paint the
day of the week for a particular discipline, the discipline
mathematics does not happen every day only on days Mon / Wed / Fri.
When creating a discipline I submit this:
class CreateDisciplines <ActiveRecord :: Migration
def change create_table: disciplines do | t |
t.string: name
t.integer: user_id
t.boolean: monday
t.boolean: thursday
t.boolean: wednesday
t.boolean: thursday
t.boolean: friday
t.time: hour_begin
t.time: hour_end
end
t.timestamps
end
end
end
class CreateEvents <ActiveRecord :: Migration
def change create_table: events do | t |
t.integer: discipline_id
t.date: start_at
t.date: end_at
t.boolean: all_day
t.timestamps
end
end
end
You can tell me how do I create a method to paint only the day of the
week a particular discipline registered?
Thank you for help, may God continue to bless you.
Rafael Vieira, Brazil.
Note: Sorry English.