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/views/inquiries/_form.html.erb --> | |
<%= form_for inquiry do |f| %> | |
<div> | |
<%= f.label :name %><br/> | |
<%= f.text_field :name %> | |
</div> | |
<div> | |
<%= f.label :email %><br/> |
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/views/inquiries/_form.html.erb | |
<%= form_for inquiry do |f| %> | |
<% if inquiry.errors.any? %> | |
<ul> | |
<% inquiry.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> | |
<% end %> |
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
## Create A Visit | |
`POST /visits` | |
````javascript | |
{ | |
uuid: "ABC123", | |
majorNumber: "12984", | |
customer: { | |
customerID: "800000516109", |
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
extraExcludes = "bower_components,dist,hooks,node_modules,public,tests,tmp,vendor" | |
excludeInFileChooser = "{$excludeInFileChooser,$extraExcludes}" | |
excludeInFolderSearch = "{$excludeInFolderSearch,$extraExcludes}" |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didRender() { | |
console.log('didRender'); | |
console.log('pojo1', this.get('pojo1')); | |
console.log('pojo2', this.get('pojo2')); | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actions: { | |
focus() { | |
console.log('focus'); | |
} | |
} |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
setText(text) { | |
let message = this.get('message'); | |
message = Ember.copy(message); | |
message.text = text; |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
edited: false, | |
actions: { | |
setText(text) { | |
this.set('edited', true); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
edited: false, | |
actions: { | |
setText(text) { | |
console.log('setText', text); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
edited: false, | |
actions: { | |
setText(text) { | |
this.set('edited', true); |