Difficult to say with so little code:
What the code in your view (admin/new.html.erb)? And what’s the code
of the new action in your controller (admin.rb)?
Difficult to say with so little code:
What the code in your view (admin/new.html.erb)? And what’s the code
of the new action in your controller (admin.rb)?
Dirk.
I have the same error.
The code in controller: admin_controler.rb is
class AdminController < ApplicationController
scaffold :product
end
There is no view defined yet.
The code in model: product.rb is:
class Product < ActiveRecord::Base
end
Any idea?
Phil
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.