I'm using Rails 3.2. Here's my code:
transports = %w(car bike)
transports.each do |transport|
@transport = transport.classify.all
end
That code is not working, but I want the results to be:
@cars = Car.all
@bikes = Bike.all
How do I do that?