I think we are getting to the problem. There is absolutely no errors in the
page at all, only some bootstrap css warnings. Anyway, inspecting the
network console, I noticed that when I hit the page for the first time
(when it doesn't work), I get this request:

http://myapp/reports/work_hours

But when I refresh it (when it does work), I get both these requests:

http://myapp/reports/work_hours

http://myapp/work_hours_configs?eid=0f726c1c7c83871405ff3781a71db031&embedded=true


I would just like to point out that there is no js errors on console
whatsoever. Any tips on why is the second request being ommited on the
first hit? Thanks a lot.




On Thu, Oct 22, 2015 at 5:41 AM, Sergio Cambra <[email protected]>
wrote:

> When page is loaded, some JS should call server to replace link with
> embedded
> scaffold.
>
> Look console for JS errors
> Also look network tab on web inspector, check if request for your embedded
> scaffold is issued
>
>
> El Miércoles, 21 de octubre de 2015 19:14:37 Cláudio Forain escribió:
> > 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&embedd
> > ed=true
> >
> > Here is the generated html of the link:
> >
> > <a class="load-embedded" data-remote="true"
> >
> href="/work_hours_configs?eid=0f726c1c7c83871405ff3781a71db031&amp;embedded=
> > 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 http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to