I see no link definition nor attr_accessor for link in list. In Sergio's
commit:
http://github.com/activescaffold/active_scaffold/commit/065d871211eba390ef8da65f167c73a67c97c211
the line added:
+    def list_authorized_filter
+      raise ActiveScaffold::ActionNotAllowed unless
self.send(active_scaffold_config.list.link.security_method)
+    end

looks like needs an attr_accessor for that in
lib/active_scaffold/config/list.rb


On Thu, May 28, 2009 at 6:17 PM, simonS <[email protected]> wrote:

>
> Ok I followed these instruction as detailed and still get this error
>
> undefined method `link' for #<ActiveScaffold::Config::List:0x5f80854>
>
> C:/SVN Code/Turner/trunk/webapp/vendor/plugins/active_scaffold/lib/
> active_scaffold/configurable.rb:19:in `method_missing'
> C:/SVN Code/Turner/trunk/webapp/vendor/plugins/active_scaffold/lib/
> active_scaffold/actions/list.rb:87:in `list_authorized_filter'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> callbacks.rb:178:in `send'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> callbacks.rb:178:in `evaluate_method'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> callbacks.rb:166:in `call'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> filters.rb:225:in `call'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> filters.rb:629:in `run_before_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> filters.rb:615:in `call_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> filters.rb:610:in `perform_action_without_benchmark'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> core_ext/benchmark.rb:17:in `ms'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> core_ext/benchmark.rb:10:in `realtime'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> core_ext/benchmark.rb:17:in `ms'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> rescue.rb:160:in `perform_action_without_flash'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> flash.rb:141:in `perform_action_without_render_component'
> C:/SVN Code/Turner/trunk/webapp/vendor/plugins/render_component/lib/
> components.rb:39:in `perform_action'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> base.rb:523:in `send'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> base.rb:523:in `process_without_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> filters.rb:606:in `process'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> base.rb:391:in `process'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> base.rb:386:in `call'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> routing/route_set.rb:433:in `call'
>
> I removed all the config from my controller so it was backin base
> state and I still get this error.
>
> Any hints or resolutions greatly appreciated.
>
> On May 28, 12:59 pm, johnnybutler7 <[email protected]> wrote:
> > The master should work with rails 2.3+
> >
> > http://github.com/activescaffold/active_scaffold/tree/master
> >
> > click the download button and get the relavant tar/zip file, unpack
> > and then
> > copy to the vendor folder.
> >
> > On 28 May, 20:49, simonS <[email protected]> wrote:
> >
> >
> >
> > > This is the call stack
> >
> > > => Rails 2.3.2 application starting onhttp://0.0.0.0:3000
> > > c:/ruby/lib/ruby/gems/1.8/gems/facets-2.5.2/lib/core/facets/module/
> > > alias_method_chain.rb:35:in `alias_method': undefined method
> > > `_pick_template' for class `ActionView::Base' (NameError)
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/facets-2.5.2/lib/core/
> > > facets/module/alias_method_chain.rb:35:in `alias_method_chain'
> > >         from C:/SVN Code/Turner/trunk/webapp/vendor/plugins/
> > > active_scaffold/lib/extensions/generic_view_paths.rb:46
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `gem_original_require'
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `require'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> > > active_support/dependencies.rb:156:in `require'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> > > active_support/dependencies.rb:521:in `new_constants_in'
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> > > active_support/dependencies.rb:156:in `require'
> > >         from C:/SVN Code/Turner/trunk/webapp/vendor/plugins/
> > > active_scaffold/environment.rb:4
> > >          ... 25 levels...
> > >         from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/
> > > server.rb:84
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `gem_original_require'
> > >         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > > 31:in `require'
> > >         from script/server:3
> >
> > > On May 28, 12:46 pm, simonS <[email protected]> wrote:
> >
> > > > I can find some mentions to this, but nothing authoritive.
> >
> > > > Does AS work with Rails 2.3.2 ?
> > > > Is AS "supported" on Rails 2.3.2 ?
> >
> > > > Does it just work with the current code trunk, or is there a specific
> > > > version ?
> >
> > > > How do you get a copy of AS for Rails 2.3.2 if you can't run git ? Is
> > > > there a packaged tarball ?
> >
> > > > Thanks !- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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