Say I have something like this:
And then use it in the foo.rhtml view, like:Code:class FooController < ApplicationController @bars = bar.find_all end
How is the data from the @bars instance available to the view?Code:<% @bars.each do |bar| %> <%= bar.field %> <% end %>
Thanks





Bookmarks