I have one controller in app/comtrollers/AdminsController.rb
class AdminsController < ApplicationController
#with standart CRUD methods
@admins = Admin.find(:all)
There are another one, that inherit his methods from parent:
class TurnirresultsController < AdminsController
@admins = Turnir.find(:all)
Both have the same CRUD methods. It’s look very ugly. That’s why I
inherited TurnirresultsController class from AdminsController.
view for “new” method looks like:
<%= f.label :title %>
ut <%= f.text_area :title, :rows => 1, :cols => 103 %>
Usually, thay are using different tables.
I need to explore different views.
Here the problem:In this case the new Turnir object doesn’t create.
That’s why it doesn’t work.
I read cook book, looked in the net, but all finded articles didn’t
I tried whith routes.rb:
but… you see, i’m here.
Please, Help me to find solution of this problem.