On Martes, 9 de Marzo de 2010 21:57:55 WSzP escribió:
> Hello,
> I'm running Rails 2.3.5, with
> git://github.com/ewildgoose/render_component.git -r rails-2.3 and
> git://github.com/activescaffold/active_scaffold.git - r rails-2.3
> Everything works great if I use <%= javascript_include_tag :defaults
> %> in my layout.
> Now the problem is that includes application.js. In my other projects
> that used to be empty, but now in a layout that has no active_scaffold
> I use jQuery. I'm not about to mix those two. Don't get me wrong. I'm
> using ActiveScaffold for my backend and jQuery for my frontend,
> different layouts, different controllers, etc. The only common things
> are the models.
>
> I was thinking <%= javascript_include_tag 'controls', 'dragdrop',
> 'effects', 'prototype', :cache => 'admin'%>

Try to set prototype and effects first, scriptaculous needs prototype, and all 
scriptaculous files needs effects:
<%= javascript_include_tag 'prototype', 'effects', 'controls', 'dragdrop', 
:cache => 'admin'%>

If you don't use inplace_edit, you don't need controls, if you don't use 
something like active_scaffold_sortable, you don't need dragdrop.

> would solve the problem. Well it did not. It's not the cache since the
> problems are present in development mode.
> Now the problems are quite odd. The table is drawn, but if I click
> show the close button will not work, and there are a few more
> oddities. For example if I edit something I get a dialog: RJS error:
> TypeError: Effect is undefined (both in FF and Chrome). But the
> database gets updated with the new values.
>
> Long story short: How to use ActiveScaffold without including
> application.js.
>
> Thanks a lot.
> W. Szabó Péter

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