Re: Re: Actionmailer Help Needed

Surya
Fri, 29 Jul 2011 13:11:05 -0000

the code you have written here:
  @user = User.find(:all, :conditions => *["@task.dueddate <= ? AND
@task.status = ?", Date.today + 7.days, false*])

is not correct probably you should check this :
http://api.rubyonrails.org/classes/ActiveRecord/Base.html for making
conditional statements. According to me it should not be
"@task.duedate"
inside quotes. else put #{@task.duedate} instead of simple
"@task.duedate"

On Fri, Jul 29, 2011 at 5:35 PM, Jenny Blunt
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> I''ve tried doing this in my tasks controller to list all users
with
> upcoming tasks but it''s not working...
>
>
>    @task = Task.all
>     @user = User.find(:all, :conditions => ["@task.dueddate <= ?
AND
> @task.status = ?", Date.today + 7.days, false])
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


--

Please consider the environment before printing this email.

Regards,
Surya