Skip to content
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

states.js rendered with wrong layout causing JS errors #1371

Closed
shaicoleman opened this issue Apr 10, 2012 · 1 comment
Closed

states.js rendered with wrong layout causing JS errors #1371

shaicoleman opened this issue Apr 10, 2012 · 1 comment

Comments

@shaicoleman
Copy link

states.js is rendered with the application layout, when it should be renedered without any layout.

In app/controllers/spree/states_controller.rb

it should be changed from:
respond_with @state_info = Spree::State.states_group_by_country_id.to_json
to:
respond_with @state_info = Spree::State.states_group_by_country_id.to_json, :layout => nil

@radar radar closed this as completed in 57c2885 Apr 10, 2012
@radar
Copy link
Contributor

radar commented Apr 10, 2012

Fixed with the above commits. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants