Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

PJAX error when view doesn't contain HHTML (I think) #1575

Open
agronemann opened this Issue Mar 22, 2013 · 0 comments

Comments

Projects
None yet
1 participant

Hey,

I'm using v0.4.6. I have a view that looks like this:

# app/views/rails_admin/main/magazine_edit.html.erb
<%= @object.name %>

When I visit that custom action on a model via RailsAdmin, it doesn't insert the content on the page. It only inserts the content when you do a hard refresh on that page.

It can be fixed by wrapping it inside a div:

# app/views/rails_admin/main/magazine_edit.html.erb
<div>
  <%= @object.name %>
</div>

Then it works with PJAX too.

Not a critical bug in any way. Just wanted what I discovered. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment