This may be the solution, add
config.serve_static_assets = true
toconfig/environment/production.rband run
rake assets:precompile
You guess what? Everything is on rails!
It is not enough to be industrious, so are the ants. What are you industrious for? —— H. D. Thoreau
config.serve_static_assets = true
toconfig/environment/production.rb
rake assets:precompile
You guess what? Everything is on rails!
rake db:test:prepare
function isValidEmail (email) {
return email.indexOf('@') != -1;
};
$required = $('.required');
function requiredValues () {
var inputs = new Array();
$required.each(function(){
inputs.push($(this).val());
});
return inputs;
};
function bakery( ) {
if(false) {
var cake = "butter" ;
}
}
What it will actually do is:
function bakery() {
var cake;
if(false) {
var cake = "butter" ;
}
}
That's what we call hoisting.
funciton(okgo) {
var color = "Red";
if (okgo) {
var color = "Black";
}
console.log(color);
}
Result:
okgo = true;
"Black"
<label for="name">
<input type="text" name="name" >
<label for="name">
<input type="text" name="name" id= "name">