AS for Rails 2.3.2

23 views
Skip to first unread message

simonS

unread,
May 28, 2009, 3:46:54 PM5/28/09
to ActiveScaffold : Ruby on Rails plugin
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 !

simonS

unread,
May 28, 2009, 3:49:21 PM5/28/09
to ActiveScaffold : Ruby on Rails plugin
This is the call stack

=> Rails 2.3.2 application starting on http://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

Carl Anderson

unread,
May 28, 2009, 3:55:39 PM5/28/09
to actives...@googlegroups.com
Yes, the newest branch works with Rails 2.3.2.

You can get it from here by clicking on the download button:

http://github.com/activescaffold/active_scaffold/tree/master

You will also need the Render Component plugin. I'm using the one from
here that seems to work well:

http://github.com/ewildgoose/render_component/tree/master

And this is the current docs page:

http://wiki.github.com/activescaffold/active_scaffold

Hope that helps,
Carl

johnnybutler7

unread,
May 28, 2009, 3:59:55 PM5/28/09
to ActiveScaffold : Ruby on Rails plugin
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 <si...@simonsplace.com> wrote:
> This is the call stack
>
> => Rails 2.3.2 application starting onhttp://0.0.0.0:3000

simonS

unread,
May 28, 2009, 6:17:23 PM5/28/09
to ActiveScaffold : Ruby on Rails plugin
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.
> > > Thanks !- Hide quoted text -
>
> - Show quoted text -

Hernan Astudillo

unread,
May 28, 2009, 6:40:56 PM5/28/09
to actives...@googlegroups.com
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

simonS

unread,
May 28, 2009, 6:57:31 PM5/28/09
to ActiveScaffold : Ruby on Rails plugin
I assume that this means that something got lost in the commit ? I
don't suppose that this is going to get taken care off soon...?

How stable is the Master tree, are test being written to ensure stuff
does not break with each update/commit ?

When is there going to be a stable 2.3.2 compatible version
published ? Anytime soon ?

Some day I may have the skills and knowlege to contribute to this code
base....but untill then all the help is very much appreciated.

Thanks
-Simon

On May 28, 3:40 pm, Hernan Astudillo <naa...@gmail.com> wrote:
> I see no link definition nor attr_accessor for link in list. In Sergio's
> commit:http://github.com/activescaffold/active_scaffold/commit/065d871211eba...
> > > - Show quoted text -- Hide quoted text -
Message has been deleted
Message has been deleted

Sergio Cambra .:: entreCables S.L. ::.

unread,
May 29, 2009, 2:54:52 AM5/29/09
to actives...@googlegroups.com
On Viernes, 29 de Mayo de 2009 00:57:31 simonS escribió:
> I assume that this means that something got lost in the commit ? I
> don't suppose that this is going to get taken care off soon...?


It's fixed now.


>
> How stable is the Master tree, are test being written to ensure stuff
> does not break with each update/commit ?


There are too few tests. We should write more tests, all help is welcome.


>
> When is there going to be a stable 2.3.2 compatible version
> published ? Anytime soon ?


stable 2.3.2 compatible version is master branch. I use master branch with rails 2.3.2 in my work, so I try to keep it stable (and add improvements too).
--
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com


Ed W

unread,
May 30, 2009, 4:11:32 AM5/30/09
to actives...@googlegroups.com
Sergio Cambra .:: entreCables S.L. ::. wrote:
>
> How stable is the Master tree, are test being written to ensure stuff
> does not break with each update/commit ?


There are too few tests. We should write more tests, all help is welcome.


I agree.

I posted a starting point for this some months back - this is what I use in my frontend functional tests to do a simple CRUD test on the major actions.  It's waaay too simple and could easily be improved, but I think it's an interesting starting point that at least the whole application ain't broken.

Ideally some unit tests for the individual stuff would be great - I think anyone with basic testing ability could pitch in here.  Start with the list view and just test out the basic helper functions and view functions?

OK my active_scaffold_test_base.rb is attached.  Then in any functional test I want to run I simply do:


  include ActiveScaffoldTestBase
 
  def setup
    @controller = DomainsController.new
    @request    = ActionController::TestRequest.new
    @response   = ActionController::TestResponse.new
 
    @as_new_record = {:domain=>"abc.com"} # or whatever you need to setup a new record
    assert_not_nil login_as(:admin_mailasail)
  end


It would be great if someone could take this and adapt it so that the list of actions is derived from the config, etc.  Also I think a cleaned up version of this could be interesting to put into AS itself as a helper function?

Cheers

Ed W



active_scaffold_test_base.rb
Reply all
Reply to author
Forward
0 new messages