On 16 March 2016 at 08:05, Naveed Alam wrote:
>>
>> Why are you not using Roster.Duty.where(...)?
>>
>> Colin
>
> Thanks dear it worked, I just changed
>
> @theday =Time.now.strftime('%A').downcase
>
> to this
> @theday =Time.now.strftime('%w')
Does Time.now.wday not work?
One thing to watch out
On 16 March 2016 at 01:24, Bigmac Turdsplash wrote:
> Bigmac Turdsplash wrote in post #1182233:
>> Colin Law wrote in post #1182193:
>>> On 14 March 2016 at 16:15, Bigmac Turdsplash
>>> wrote:
As for a button to trigger the event, ill have to make due with a
href=>/liveStream-hiWor
>
> Why are you not using Roster.Duty.where(...)?
>
> Colin
Thanks dear it worked, I just changed
@theday =Time.now.strftime('%A').downcase
to this
@theday =Time.now.strftime('%w')
and the condition line as you suggested to this
@rosterduties = RosterDuty.find(:all, :conditions => ["(duty_day1
3 matches
Mail list logo