#Using compass-rails with rails 4
If you try to use compass-rails with rails 4, the following error will stop you,
Unsupported rails environment for compass
You can fix this error by doing the following:
$ vim Gemfile
| Action is a form of communication that earns my trust. |
| $(function() { | |
| var annex = $('.page-insert-annex'); | |
| var handle = annex.data()['handle']; | |
| /* get a closure around annex and handle */ | |
| var closure = populate_annex_with_page(annex, handle); | |
| if (annex.length) { | |
| $.when($.get('/pages.json')).done(closure); // be sneaky |
| // apparently we had a really sunny month? | |
| $.each(july, function(index, days) { | |
| if (programming) { | |
| $.each(house.windows, function(index, window) { | |
| window.close(); | |
| }); | |
| house.ac.open(); | |
| self.on('sunrise', go_get_coffee); |
#Using compass-rails with rails 4
If you try to use compass-rails with rails 4, the following error will stop you,
Unsupported rails environment for compass
You can fix this error by doing the following:
$ vim Gemfile
| $('.man:last-child').on('doomsday', function(e) { | |
| setTimeOut(this.awake, 2147483647 + 1); | |
| }); |
| window.onLoad = function() { | |
| var other_worlds = window.parent; | |
| if (typeof other_worlds.postMessage === "function") { | |
| other_worlds.postMessage("Hello?", "http://www.space.com"); | |
| } | |
| }; |
| .lovely { | |
| color: lavender; | |
| } |
| MyApp.Views.MasterDetailLayout = Backbone.Marionette.Layout.extend({ | |
| template: 'backbone/templates/master_detail_layout', | |
| regions: { | |
| master: "#master", | |
| detail: "#detail" | |
| }, | |
| initialize: function() { | |
| console.log('MasterDetailLayout->initialize'); |
| var obj = (function (){ | |
| var self = { | |
| foo: function () { | |
| return 'foo'; | |
| }, | |
| namespace: { | |
| bar: function () { | |
| return self.foo(); | |
| } | |
| } |