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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to