On Sábado, 17 de Septiembre de 2011 22:22:09 cpg escribió:
> Hi,
> 
> Great job on the 3.1 release!
> 
> I am a bit lost when it comes to embedded scaffolds. I have an app
> that is working fine in 3.0.9 and am not sure what exactly i have to
> do bring it to 3.1.

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.

> 
> Keep up the great work and remember that we have an IRC channel now
> for sharing tips about ActiveScaffold. #active-scaffold in freenode.
> 
> Thanks in advance!
> 
> Carlos
> 
> On Sep 16, 1:22 am, "Sergio Cambra .:: entreCables S.L. ::."
> 
> <[email protected]> wrote:
> > On Viernes, 16 de Septiembre de 2011 00:42:15 Nick Rogers escribió:
> > > Great news!
> > > 
> > > Is this still the way to render embedded scaffolds, except without the
> > > render_component plugin? Or is there another way?
> > > 
> > > <%= render :active_scaffold => 'teams' %>
> > 
> > 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.
> > 
> > > Thanks!
> > > 
> > > On Thu, Sep 15, 2011 at 6:35 AM, Sergio Cambra .:: entreCables S.L. ::.
> > > <
> > > 
> > > [email protected]> wrote:
> > > > 3.1.0 version supporting rails 3.1 has been released:
> > > >http://activescaffold.com/2011/9/15/rails-3-1-support
> > > >
> > > > 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) [email protected]
> > > > 
> > > > --
> > > > 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.
> > 
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Mariana Pineda 23, 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

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