radhames brito wrote:
> What was the problem? how did you solve it?

render :partial =>'sth',:object => @sth

is not working in rails 3,it pass the first element of the array 
@sth(I'm not sure what would happen if @sth is not an array),thus you 
can't call each in the template.You have to use :locals =>{:sth 
=>@sth}.Seems a little complicated,is it a bug or some change not 
mentioned in the changelog?

Before I realize this I changed the view a little,added <%= Tutor.each 
.....%>,and got that text.
-- 
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.

Reply via email to