O
O
Oleg Komenda2018-06-15 14:21:21
Ruby on Rails
Oleg Komenda, 2018-06-15 14:21:21

Explain what is wrong?

I started to learn rails, found video tutorials, but there is a very old version of rails and because of this there are errors.
Can you help? What is the error and how to fix it?
5b23a0e838a5e829696231.jpeg
Here is the code:

class ItemsController < ApplicationController
  def index
    @items = Item.all
    render text: @items.map { |i| "#{i.name}: #{i.price}"}.join("<br/>")
  end
end

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
blackst0ne, 2018-06-15
@rafamont

Missing fileapp/views/items/index.html.erb

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question