Hiee guyz im facing the same error (1), can anyone help me out plz......

On Friday, May 27, 2011 4:59:02 AM UTC+5:30, jonmc12 wrote:
>
> Has anyone had a chance to use AS with Rails 3.1? 
>
> I get quite a few fun errors: 
>
> 1)  Upon starting server (rails s), I get this error: 
>
> .rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.1.0.rc1/lib/ 
> active_support/core_ext/module/aliasing.rb:31:in `alias_method': 
> undefined method `render' for module 
> `ActionView::Rendering' (NameError) 
>         from /Users/jonmc12/.rvm/gems/ruby-1.9.2-p136/gems/ 
> activesupport-3.1.0.rc1/lib/active_support/core_ext/module/aliasing.rb: 
> 31:in `alias_method_chain' 
>         from /Users/jonmc12/.rvm/gems/ruby-1.9.2-p136/bundler/gems/ 
> active_scaffold-9c8a7e0c68f6/lib/active_scaffold/extensions/ 
> action_view_rendering.rb:99:in `<module:Rendering>' 
>         from /Users/jonmc12/.rvm/gems/ruby-1.9.2-p136/bundler/gems/ 
> active_scaffold-9c8a7e0c68f6/lib/active_scaffold/extensions/ 
> action_view_rendering.rb:17:in `<top (required)>' 
> .... 
>
>
> 2)  <%= active_scaffold_includes %> seems to clash with the asset 
> manager in rails 3.1.  I worked around this by copying the JS files 
> and creating an asset package - app/assets/javascripts/ 
> active_scaffold.js 
> /* 
>  *= require active_scaffold/default/*.js 
>  */ 
>
> 3)  Upon commenting out action_view_rendering.rb, line 99 and put the 
> above and then replaced active_scaffold_includes with 
> javascript_include_tag "active_scaffold" (as described above), I try 
> to load one of my active scaffolds directly, and get this error: 
>
> ActionController::RoutingError (undefined method 
> `current_scoped_methods' for #<Class:0x00000105e50cf8>): 
>   activerecord (3.1.0.rc1) lib/active_record/base.rb:1073:in 
> `method_missing' 
>   /Users/jonmc12/.rvm/gems/ruby-1.9.2-p136/bundler/gems/ 
> active_scaffold-9c8a7e0c68f6/lib/active_scaffold/data_structures/ 
> sorting.rb:12:in `set_default_sorting' 
> .... 
>
> This is likely due to the fact that ActiveRecord 3.1.0 deprecated some 
> methods, including 'current_scoped_methods'.  It is not obviously 
> clear to me how to replicate this capability using the newest 
> ActiveRecord methods.  Thats about where I gave up any hope of hacking 
> together a quick integration with AS and rails 3.1.. :) however, maybe 
> these things are more obvious to someone else. 
>
>
> Is there a timeframe for Rails 3.1 support?  If not, does anyone have 
> ideas for quick workarounds? 
>
> Jonathan

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to