> <%= render @search.games %> > > means you have partial file: > > ---- /app/views/games/_game.erb.html > > hello world!, i'm <%= game %> instance! > > ---- > > http://guides.rubyonrails.org/layouts_and_rendering.html > > If you have an instance of a model to render into a partial, you can use > a shorthand syntax: > > <%= render @customer %> > Assuming that the @customer instance variable contains an instance of > the Customer model, this will use _customer.html.erb to render it and > will pass the local variable customer into the partial which will refer > to the @customer instance variable in the parent view.
I literally just solved it before you posted this :) thanks for all the help, after reading a previous reply to my post it just clicked. Thanks all. -- 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 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.