If you are using rails 2.1, by default restful routes are enable, check
something like this in your routes.rb
map.namespace :admin do |admin|
admin.resources :users, :active_scaffold => true
end
On Tue, Oct 28, 2008 at 11:46 PM, vikano <[EMAIL PROTECTED]> wrote:
>
> Trying out ActiveScaffold for the first time. I made a new namespaced
> controller and route, put layout "admin"
> active_scaffold :user
> in the controller, pointed my browser to
> http://localhost:3000/admin/usersadmin/
> and below is the error. Any ideas?
>
>
> ActionController::RoutingError in Admin/usersadmin#index
>
> Showing vendor/plugins/active_scaffold/frontends/default/views/
> _list_header.rhtml where line #6 raised:
>
> No route matches {:action=>"show_search", :controller=>"admin/
> usersadmin", :_method=>:get}
>
> Extracted source (around line #6):
>
> 3: <% new_params = params_for(:action => :table) %>
> 4: <% active_scaffold_config.action_links.each :table do |link| -
> %>
> 5: <% next if controller.respond_to? link.security_method and !
> controller.send(link.security_method) -%>
> 6: <%= render_action_link(link, new_params) -%>
> 7: <% end -%>
> 8:
> 9: <%= loading_indicator_tag(:action => :table) %>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---