See comment below:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
window.SERVICES = <%= raw ActiveModel::ArraySerializer.new(@services).to_json %> | |
window.SERVICE_SUBCATEGORIES = <%= raw ActiveModel::ArraySerializer.new(@service_subcategories).to_json %> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.EventIndexRoute = Ember.Route.extend | |
model: (params) -> | |
@modelFor("event") | |
handleSuccess: -> | |
console.log("Hooray") | |
handleFailure: (error) -> | |
if error.status is 422 | |
model = @get("currentModel") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.user-profile {} | |
.user-profile__avatar {} | |
.user-profile__name {} | |
.user-profile__description {} | |
.user-profile__description__paragraph {} | |
.user-profile__website-link {} | |
// is faster than | |
.user-profile {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See comment. |
OlderNewer