-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS action rendered with layout using slim templates #462
Comments
response seems wrong, seeing this response it seems like response should be only js. Do you have a layout with js.erb extension? Have you overrided some in the controller which can affect this? Have you set layout in the controller or ApplicationController? Just trying to understand what's going on |
Hey, no overrides made, just namespaced controllers with
|
It shouldn't be an issue, but how is the layout set on admin controller? |
The layout is set using Here is the log from a request that errors:
|
What are firsts lines of request? I mean the lines where you can see controller, action and format requested. Started GET "/admin/homes/..." for IP at TIME Also, what's name of layout? admin.html.erb? admin.js.erb? |
The layout name is |
I will try to reproduce this using slim templates |
Just so you know, setting |
What slim related gems are you using? I made a test app, with rails 4.2.5, and only added slim, save works. |
Hi, I am getting an error similar to #384. While using inline update forms, if I hit "Save" the action is performed successfully but an error is displayed and the form doesn't close. Same thing happens when viewing a nested list: click the "close" button does not close the list and produces an error.
No actual javascript errors that I can see in the console, and the action responses are 200s.
The actions return full HTML that includes the layout which seems wrong but I don't know enough about AS to tell.
Using:
active_scaffold (3.4.30)
rails (4.2.4)
ruby 2.1.5p273
Here's an example response from an update action (sorry for the crappy formatting):
The text was updated successfully, but these errors were encountered: