Error => Unknown action. No action responded to base. Actions:

24 views
Skip to first unread message

Kirk Patrick

unread,
Mar 14, 2010, 10:43:42 PM3/14/10
to Lipsiadmin
Hi,

I follow the Screencast - Basic Concept, accurately and am having
problems. I attach the view in the files section of this group. The
name is error.png. This picture will see what i'm try to do.

The log of the error:

Processing BackendController#base (for 127.0.0.1 at 2010-03-14
23:38:51) [GET]
Parameters: {"small"=>"1", "toolbar"=>"1", "load"=>"/backend/
fornecedores.js"}
Account Columns (1.3ms) SHOW FIELDS FROM `accounts`
Account Load (0.1ms) SELECT * FROM `accounts` WHERE
(`accounts`.`id` = 1) LIMIT 1
Account Load (0.1ms) SELECT * FROM `accounts` WHERE
(`accounts`.`id` = 1)

ActionController::UnknownAction (No action responded to base.
Actions: ):
haml (2.2.21) lib/sass/plugin/rails.rb:20:in `process'

Rendering rescues/layout (not_found)


The view of products:

=simple_error_messages_for :produto
-tab "Produto" do
%table.full
%tr
%td.fixed=human_name_for :produto, 'Código'
%td=text_field :produto, :codigo
%tr
%td.fixed=human_name_for :produto, :nome
%td=text_field :produto, :nome
%tr
%td.fixed=human_name_for :produto, :marca
%td=text_field :produto, :marca
%tr
%td.fixed=human_name_for :produto, :grupo
%td=open_standard_grid :produto, :grupo, :id, :nome
%tr
%td.fixed=human_name_for :produto, :fornecedor
%td=open_standard_grid :produto, :fornecedor, :id, :nome


Thanks.

Mxrgus

unread,
Mar 21, 2010, 1:19:52 PM3/21/10
to Lipsiadmin
I have the same problem on Ubuntu 9.10, tried with 5.1.1 and 5.1.2,
with both exists.

From package management:
ii ruby1.8
1.8.7.174-1ubuntu1 Interpreter of object-
oriented scripting lan
ii rake
0.8.4-1 a ruby build program
ii rubygems1.8
1.3.5-1ubuntu2 package management
framework for Ruby librar

In gems:
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
builder (2.1.2)
haml (2.2.21)
lipsiadmin (5.1.2)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

Mxrgus

unread,
Mar 21, 2010, 1:50:24 PM3/21/10
to Lipsiadmin
Problem is that JS will make query to: /backend/base/?
small=1&toolbar=1&load=/backend/accounts.js
Query should go to: /backend/?small=1&toolbar=1&load=/backend/
accounts.js


Quickfix would be, add to config/routes.rb:
map.backend '/backend', :controller =>
'backend/base', :action => 'index'
map.backend2 '/backend/
base', :controller => 'backend/base', :action => 'index'

DAddYE

unread,
Mar 21, 2010, 3:39:07 PM3/21/10
to Lipsiadmin
Yep, it's strange that Rails dont' see default routes. Here
http://groups.google.com/group/lipsiadmin/msg/d95369491c4c999d I
supposed this problem.
Reply all
Reply to author
Forward
0 new messages