What version of rails and AS you hace installed ?

On Wed, Oct 29, 2008 at 1:41 AM, vikano <[EMAIL PROTECTED]> wrote:

>
> Thanks. It was the missing ":active_scaffold => true" that seems to
> have been the problem.
> But now when I click on any of the edit/delete/show/search buttons I
> get:
>
> NoMethodError (You have a nil object when you didn't expect it!
>
> The error occurred while evaluating nil.authorized_for?):
>
>    /vendor/plugins/active_scaffold/lib/finder.rb:69:in
> `find_if_allowed'
>
>
> Any ideas on this one?
>
>
> On Oct 28, 11:59 pm, "Miguel Fung" <[EMAIL PROTECTED]> wrote:
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to