I have the following in a Rails 3.0.5 controller:

  respond_to :html, :xml, :json
  def index
    @open_jobs = Job.incomplete
    @open_jobs_count = @open_jobs.count

    @late_jobs = Job.past_due
    @late_jobs_count = @late_jobs.count
  end

However, adding this to the index action doesn't work:

    respond_with @open_jobs, @open_jobs_count, @late_jobs,
@late_jobs_count

I just get a "Template is missing" error. How am I supposed to pass
multipe resources to respond_with?

-- 
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