I'm guessing here, but if you have AS security activated you need to set
current_user_method as explained in AS wiki

http://github.com/activescaffold/active_scaffold/wikis/security

check if you have the settings in place and configurated. My recommend you
to disable all security constraint and test if the AS configuration works,
and then enable step by step the security option in AS.

hope this help.



On Wed, Oct 29, 2008 at 5:56 PM, vikano <[EMAIL PROTECTED]> wrote:

>
> I'm using Rails 2.1. and AS 1.2RC1
>
> Clicking on any of the show or edit buttons produces a pink bar with
> "Request Failed (code 500, Internal Error)" displayed and the logs
> show the `find_if_allowed' error below.
>
> Thanks.
>
> On Oct 29, 12:01 pm, "Miguel Fung" <[EMAIL PROTECTED]> wrote:
> > 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