If the content of Col1 and Col2 is dynamic?

I have this

MODEL
---------------------------------------------
class Forecast < ActiveRecord::Base

  belongs_to :employee
  belongs_to :prefshift

  attr_accessible :employee_id, :giorno, :prefshift_id

end
----------------------------------------------

and i want to have this present on web

VIEW
-----------------------------------------------------------
                 01/07/2013 | 02/07/2013 | 03/07/2013 | ....
prefshift1       employee3                  employee1
prefshit2        employee8      employee5
prefshift3                                  employee6
prefshift4       employee3      employee1   employee5
....

--------------------------------------------------------

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/58640dfa14004881f8cbe407cd88192e%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to