Maybe related to turbolinks, try adding jquery-turbolinks gem. You have to add 
to application.js too, like this:

//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//
// ... your other scripts here ...
//
//= require turbolinks


El sábado, 19 de marzo de 2016 7:50:03 (CET) loveand light escribió:
> I am experiencing this same problem. I just tried to add
> 
> ActiveScaffold.reload_embedded($('#contact_03'));
> 
> and also:
> 
> ActiveScaffold.reload_embedded('#contact_03');
> 
> but can't get this to work:
> 
>     #contact_03.tab-pane = render :active_scaffold => "organizations",
> 
> :label => "Admin Overview"
> 
> It comes back with just a blank tab when it is linked to  and you must do a
> refresh to get the data to come back.
> 
> Thanks in advance.
> 
> Mark
> 
> On Wednesday, October 21, 2015 at 5:14:41 PM UTC-4, Cláudio Forain wrote:
> > Hello. I'm using activescaffold-3.4.29, rails 4.2.0 and ruby 2.2.0.
> > So, I have a view that essentialy is an embedded AS list followed by an
> > html table.
> > 
> > view.html.erb
> > 
> >   <%= render  :active_scaffold => work_hours_configs"%>
> > 
> > my html table
> > 
> > The problem is when I first make the request for the page, the embedded
> > scaffold is simply "closed", and it has a link with the name of my entity
> > (WorkHoursConfigs) that does nothing:
> > 
> > http://postimg.org/image/vnyt7vwxv/
> > 
> > And the link points to this url:
> > http://my_app/work_hours_configs?eid=0f726c1c7c83871405ff3781a71db031&embe
> > dded=true
> > 
> > Here is the generated html of the link:
> > 
> > <a class="load-embedded" data-remote="true"
> > href="/work_hours_configs?eid=0f726c1c7c83871405ff3781a71db031&amp;embedde
> > d=true">WorkHoursConfigs</a>
> > 
> > But if I refresh that page, everything seems to go as expected:
> > 
> > http://postimg.org/image/ardkj06hj/
> > 
> > 
> > I tried to look at the documentation to see if there is any configuration
> > to make the embedded scaffold to be already opened, to no avail. Any tips?
> > Thanks in advance.


-- 
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 https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to