dgeb / ember_rest_example Goto Github PK
View Code? Open in Web Editor NEWA simple Rails app for testing CRUD with ember.js and ember-rest.js
License: MIT License
A simple Rails app for testing CRUD with ember.js and ember-rest.js
License: MIT License
When using this example with ember-rails 0.2.4 which was installed by bundler, I get an ActionView::Template::Error. However it works fine, when using the current version from git (git://github.com/emberjs/ember-rails.git) which is version 0.3 as of writing this.
I followed the instructions in the README, but this app doesn't seem to work. I get an empty page with an <h1>Contacts</h1>
and that's it. I created a Contact
with via the console and nothing shows up. Any ideas?
Really like this - I want to adapt it for use in my own projects. I've been using Jasmine to TDD my JS code in Rails apps for a while now. Don't suppose you've done any testing...?
I had to add{{action submit}}
to the submit button in order for update/create to work. Is ember supposed to maptype="foo"
to the view methodfoo
automatically? I only ask because you explicitly use the action helper for cancel, {{action cancelForm}}
.
I'm using Ember 9.8.1 and ember-rest 0.1.1
Thanks
Brian Ledsworth
My submit button looks like:
<button type="submit" {{action submit}}>
{{#if id}}Update{{else}}Create{{/if}}
</button>
Is there no way to avoid the double model validation (once by ember and once by ActiveRecord) when using ember with rails?
Before beginning, thanks for this work. I've grabbed this example, made a bundle installation, migration, etc w/Rails 3.2.6. But when I was running this example, it gave error like this:
"can't convert nil into String
(in /home/ekrem/workspace/ember_rest_example/app/assets/javascripts/app/templates/contacts/edit.handlebars)"
How can I fix?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.