Hi all,
I installed active_scaffold on rails 2.2.2 (script/plugin install
http://github.com/activescaffold/active_scaffold.git -r rails-2.2) and
did the following:
created a controller NetworksController (networks_controller.rb inside
app/controllers) with:
class NetworksController < ApplicationController
active_scaffold :network
end
created a layout networks.html.erb (in views/layout) with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<%= javascript_include_tag :defaults %>
<%= active_scaffold_includes %>
<title>Réseaux : <%= controller.action_name %></title>
</head>
<body>
<%= yield %>
</body>
</html>
I then launch webrick (script/server -p 8080) and when I go to
http://localhost:8080/networks, I have the following error:
NoMethodError in Networks#index
Showing vendor/plugins/streamlined/templates/generic_views/_list.rhtml
where line #1 raised:
undefined method `model_name' for #<NetworksController:0x7f17d6407a50>
Any idea? (I googled for this error and I saw nothing)
By the way, I tried it on ruby 1.8.7 and jruby 1.1.6 on a X86_64
OpenSuse 11.1
Thanks in advance,
Sylvain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---