Re: [Rails] Re: Re: Re: Re: Re: Find Weekdays range between two

2016-03-16 Thread Colin Law
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

Re: [Rails] Re: Re: button to launch erb scripts and display outputs.

2016-03-16 Thread Colin Law
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

[Rails] Re: Re: Re: Re: Re: Find Weekdays range between two

2016-03-16 Thread Naveed Alam
> > 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