I haven't tested render_component in rails 3.1 so loading embedded scaffolds by
AJAX is the default and recommended way now.
I think all features are working, but I haven't tested it intensively. I will
be testing it with an application I'm developing now with active_scaffold
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com
--
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 actives...@googlegroups.com.
To unsubscribe from this group, send email to activescaffol...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
//= require_active_scaffold
*= require_active_scaffold
couldn't find file 'active_scaffold
Yes, that's the way. It works without render_component, like in 3.0 version.
It will work with render_component, if render_component works with rails 3.1,
I haven't tried it.
It's working with that lines for me. Have you trying in a new app? Are you
using it as gem or plugin?
It's strange, it was working yesterday, but now it's failing in app I was
developing too
It was working when I used gem as path, I forgot to add assets to gem
Install 3.1.1
Started GET "/results/new?adapter=_list_inline_adapter" for 127.0.0.1 at 2011-09-16 13:45:47 +0200Processing by ResultsController#new as JSParameters: {"adapter"=>"_list_inline_adapter"}Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_form_attribute.html.erb (1.1ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_form.html.erb (5.8ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_base_form.html.erb (11.6ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_create_form.html.erb (15.5ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_messages.html.erb (0.6ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_list_inline_adapter.html.erb (5.0ms)Completed 200 OK in 29ms (Views: 7.9ms | ActiveRecord: 0.0ms)Started GET "/results/new?adapter=_list_inline_adapter" for 127.0.0.1 at 2011-09-16 13:45:47 +0200Processing by ResultsController#new as JSParameters: {"adapter"=>"_list_inline_adapter"}Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_form_attribute.html.erb (1.1ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_form.html.erb (6.1ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_base_form.html.erb (12.4ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_create_form.html.erb (16.1ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_messages.html.erb (0.5ms)Rendered /Users/michaelp/.rvm/gems/ruby-1.9.2-p290@rails-3_1/gems/active_scaffold-3.1.2/frontends/default/views/_list_inline_adapter.html.erb (6.2ms)Completed 200 OK in 33ms (Views: 11.4ms | ActiveRecord: 0.0ms)
require active_scaffold must be under *_ujs or javascript won't work,
ActiveScaffold uses Jquery or Prototype and must be loaded after.
I have tried it now, and opening search displays failed request. Response
content is ok, but content type is javascript instead of text/html.
Try it now. I haven't released a new version, you should use :git => '...'
option in your Gemfile
About embedded scaffolds you don't need to do anything. Without
render_component embedded scaffolds will be loaded by AJAX and you will finish
with same view.
>
> The AS table comes up, but things inside do not work. Search, create,
> and things like the Edit action link. They do send a request to the
> server, seemingly in JS
>
> Processing by Admin::UsersController#edit as JS
>
> But it sits there with the indicator spinning and nothing coming back
> to the UI.
>
> I removed vendor/plugins/render_component, based on the comments in
> this thread. I still have dynamic_form and verification.
Dynamic_form have never been used by ActiveScaffold, if you use it it's ok.
Verification is not used, but it's unharmful.
>
> Basically I am a little confused on how to move this to the new asset
> pipeline.
If you are updating an old app, follow this tip:
http://blog.nodeta.com/2011/06/14/rails-3-1-asset-pipeline-in-the-real-world/
uglifier is not needed
For example, in app/assets/stylesheets/application.css put
/*
*= require active_scaffold
*= require_self
*/
your styles
If you have some background images, you should use application.css.erb and use
image_path or image_url:
/*
*= require active_scaffold
*= require_self
*/
your styles {
background-image: url(<%= image_path 'image.png' %>);
background-image: <%= image_url 'image.png' %>;
}
You can divide your styles in multiple files and require them in
application.css
For javascript, use this:
//= require jquery
//= require jquery_ujs
//= require active_scaffold
//= require_self
Your javascript code here
And in your layout include only application.css and application.js:
<%= stylesheet_link_tag 'application' %>
<%= javascript_include_tag 'application' %>
>
> I am using the gem (active_scaffold-3.1.2).
I think JS is working in master branch, I will release it when someone confirms
it or when I have more time to test it.
I'm waiting to ensure it's working. I don't want to release a version for each
bug I fix