2009/9/20 Eric <ericgh...@gmail.com>: > > Is there something I'm not getting here? The short form should be > either > > render :partial => @foo > > -or- > > render @foo > > I've never seen "render :partial @foo"
OP you have changed it to <%=render :partial=>@styles %> as pointed out by Wang Pengcheng? Colin > > -eric > > > On Sep 19, 9:44 pm, Me <chabg...@gmail.com> wrote: >> Running rails 2.1.0 when I do this: >> >> <%= render :partial => 'style', :collection => @styles %> >> >> I get the collection fine in my index file. When I try the shortcut: >> >> <%= render :partial �...@styles %> >> >> I get this error: >> >> Couldn't find template file for active_record/named_scope/scopes/ >> _scope >> >> Any ideas?? > > > --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---