Ember.js jsBin template/skeleton with the latest Ember.js code - ember.js

Whatever Ember.js links I was including on jsbin is no longer working. So I would like this thread to have the latest working template/skeleton of Ember.js for jsBin.

Here is a link to jsbin with the latest Ember.js code: http://jsbin.com/ucanam/239/edit
In future you can find updated links here: https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md

You could just use the Ember.js custom JS Bin at http://emberjs.jsbin.com.

Here is the JSBin with the latest EmberJS: http://jsbin.com/neham/1/edit
Where can I get the links for the latest release of Ember.js?
You can find the latest release under the 'Builds' tab in the official Ember.js website. That would be here.
Where can I get the links to the latest builds of Ember.js?
You can also find the latest beta builds under the 'Builds' tab in the official Ember.js website. That would be here.
What is the compatible version of Handlebars.js?
Ember is very specific about what version of Handlebars it requires. For this, I usually check the ember-source.gemspec file in here.
Before you check the .gemspec file, ensure that you switch to the right version of the emberjs build that you are using.

Related

Ember not generating model files

Trying to use the cli to generate model files but no files get generated.
I run:
ember generate model blurbs
and it returns these two lines without any mention of actual files being generated (like app/models/blurbs.js)
installing model
installing model-test
I was able to generate my routes (ember g route blurb) correctly before but for models it lists no files and none are generated either.
This is my setup:
ember-cli: 3.11.0
ember-data: 3.11.2
node: 12.6.0
os: win32 x64
This is a known issue in Ember 3.11.x:
You can read about it here: https://blog.emberjs.com/2019/07/15/ember-3-11-released.html (Search for "Important Note")
For now, I recommend downgrading to Ember Data 3.10.
The bug has been fixed here, and should be in a future version of Ember Data, but the fix has not been backported to 3.11.
Update: Fixed in Ember Data 3.11.4

Symfony 3 + FOSUserBundle - Overriding template

I have installed Symfony 3.2 and FOSUser dev-master.
I would like to override FOSUser templates in my custom bundle using my bundle as child of FOSUserBundle.
Unfortunatelly this not works.. This overriding way works correctly for controllers, but not for templates.. when I used first way to overriding templates (in app/Resources...) it worked, but second way described in documentations (custom bundle) not works..
Does somebody know why?
Doc link: http://symfony.com/doc/master/bundles/FOSUserBundle/overriding_templates.html
I see that in doc for the newest version second way is there, but it isn't described like it was in older version (1.3)..
is it removed in the newest version (2.0) ?
Unfortunatelly, I can't use older FOSUser version for Symfony 3... ;/

Sitecore Web Forms for Marketers Error on Page Editor

I have recently downloaded and installed Sitecore' web forms for marketers. It has installed successfully and I have created a Form within the CMS with basic fields on it. However when I go to add the form to a page through PageEditor I get the message "an error occured". When I then check the log I see the following exception
Exception: System.MissingMethodException
Message: Method not found: 'System.Guid Sitecore.Analytics.Data.PageEventData.get_PageEventDefinitionId()'.
Source: Sitecore.Forms.Core
at Sitecore.Forms.Shell.UI.CustomizeAnalyticsWizard.OnLoad(EventArgs e)
I have decompiled the Sitecore.Analytics DLL and I cannot find this method that it is looking for anywhere. I downloaded the module version 2.5 for SItecore 7.5 revision 150209.
Can anyone tell me if I am missing a newer or older version of the a DLL or something because I can't seem to figure out where this method should exist.
Thanks
OK after a bit of looking around and tweaking. I stripped out the version I installed by following the documentation on how to uninstall WFFM. I then downloaded version 2.5 revision 141014 and installed that. At a first glance this seems to be working. If I add the form to the page via content editor it works and renders fine. It seems to submit fine too. The forms won't render using page editor mind but I am not sure what that issue is as I haven't investigated.
Either way it would seem that revision 150209 is for Sitecore 8 and revision 141014 is for Sitecore 7.5. Hope this helps anyone else who comes across the same issue.

Template requires newer script versions than project contains

I try to use the breeze/angular template for MVC 4. However, during start up I get this:
Package installation error
Could not add all required packages to the project. the following packages failed to install from .../asp.net mvc 4\packages
jquery.ui.combined.1.9.2 unable to find version 1.9.2 of package.
Now I see that the folder contains jQuery.UI.Combined.1.8.24, so I was wondering:
Is there a way to edit the project so that it (maybe always) uses the latest versions of the packages by default?
Should I just press OK and afterwards install jquery.ui through nuget afterwards?
Is there a clever way to fix this?
I know there has to be a solution due to the uglyness of getting an error by default when using a custom template. I've been googling my ass off without any results :(
Hope to update the templates soon and get MS to republish. You can't update the template easily yourself.
Fortunately, this particular issue is easy to workaround by adjusting your code to use latest jQuery or rollback to 1.8.x.
I can't use the latest verison of jQuery so I manually updated the jQuery files to 1.9. Also, check your nuget manager for updates. Breeze released 1.3.6 which will update the appropriate dependent project libraries (my jQuery files were untouched).
As of Visual Studio 2012 Update 3, the Breeze/Angular SPA template is totally broken. The jQuery update fix worked with VS2012 Update 2, but some change or another in Update 3 has made VS not play nice with the sample.
It isn't ideal, but given that Update 4 is just around the corner, we might need to hold our breaths in anticipation of a post-Update 4 fix. :(

Do EMBER 1.0 RC require grunt version v0.4.0?

I am planning to use EMBER 1.0 RC, Do we require grunt version v0.4.0 ??
No, Grunt is not required to use Ember. You can simply download Ember and include it in your application.
Grunt is a build system that helps you organize your project and perform useful tasks, but is not required. You can create simple Ember applications without a build system, but build systems are extremely helpful and should be used for any serious projects.
Here is an example JSBin showing a simple Ember application that didn't require a build system: http://jsbin.com/ixupad/1/edit
Here is a good example of an Ember application that uses Grunt: https://github.com/trek/ember-todos-with-build-tools-tests-and-other-modern-conveniences