On 23.02.2012, at 0:16, Roger Patrick wrote: > > I don't really understand the missing partial part. I have already > uploaded my search_controller and show.html classes. I have below my > search.rb model file if it is of any use:
<%= 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. -- 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.