These are chat archives for Ratnesh-Github/NoobWorld

16th
Feb 2015
Ratnesh
@Ratnesh-Github
Feb 16 2015 12:58
<script src="https://gist.github.com/Ratnesh-Github/fd537e03137c2db6dffc.js"></script>
<code>new InputView({
type: 'password',
label: 'Password:',
name: 'password',
template: templates.includes.formInput(),
value: this.model && this.model.password,
required: true,
placeholder: '',
parent: this
}),
new InputView({
type: 'password',
label: 'Confirm Password:',
name: 'confirmPassword',
template: templates.includes.formInput(),
value: this.model && this.model.password,
required: true,
placeholder: '',
parent: this,
tests: [
function (val) {
if (this.parent.getData().password !== val) {
return 'Passwords do not match'
}
}
]
}), </code>
<script src="https://gist.github.com/Ratnesh-Github/fd537e03137c2db6dffc.js"></script>
ruby new InputView({ type: 'password', label: 'Confirm Password:', name: 'confirmPassword', template: templates.includes.formInput(), value: this.model && this.model.password, required: true, placeholder: '', parent: this, tests: [ function (val) { if (this.parent.getData().password !== val) { return 'Passwords do not match' } } ] })ruby
Ratnesh
@Ratnesh-Github
Feb 16 2015 13:03
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
JavaScript var a = Object();JavaScript
ruby var obj = new Object();ruby
var obj = new Object();
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
new InputView({
                    type: 'password',
                    label: 'Password:',
                    name: 'password',
                    template: templates.includes.formInput(),
                    value: this.model && this.model.password,
                    required: true,
                    placeholder: '',
                    parent: this
                }),
                new InputView({
                    type: 'password',
                    label: 'Confirm Password:',
                    name: 'confirmPassword',
                    template: templates.includes.formInput(),
                    value: this.model && this.model.password,
                    required: true,
                    placeholder: '',
                    parent: this,
                    tests: [
                        function (val) {
                            if (this.parent.getData().password !== val) {
                                return 'Passwords do not match'
                            }
                        }
                    ]
                }),