#GroupGo Refectoring Notes
In your create method in the Entries Controller, remove this code:
if params[:email]
puts "*"*50
#p params
end
Also, remove this in your Submit method:
#GroupGo Refectoring Notes
In your create method in the Entries Controller, remove this code:
if params[:email]
puts "*"*50
#p params
end
Also, remove this in your Submit method:
| body { | |
| width: 750px; | |
| font-family: "Helvetica Neue" Helvetica, sans-serif; | |
| margin: 50px auto; | |
| } | |
| .red { | |
| color: red; | |
| text-decoration: line-through; | |
| } |
| $(function(){ | |
| //alert("JQUERY LOADED!"); | |
| //CHANGE THE DEFAULT BEHAVIOR OF THE FORM | |
| $('form').on("submit", function(event) { //do something whenever a form is submitted | |
| event.preventDefault(); //prevents the default submit behaviour. no longer refreshes page. | |
| var searchTerm = $('input').val(); //targets the only input and saves its value | |
| alert(searchTerm); |
| <html> | |
| <head> | |
| <title>!Quiz - Week 2</title> | |
| </head> | |
| <body> | |
| <center> | |
| <h1>Puppies - wait, is that a puppy?! </h1> | |
| <img id="daPuppies" src="http://www.pomsky.org/wp-content/uploads/2013/03/97c0ca628ce111e2876222000a9f0a1b_7-300x300.jpg" width="300" height="auto" position="absolute" /> | |
| <h3> don't forget to open your Chrome console </h3> | |
| <button onclick="grow();">Bigger Puppies</button> |
| /** | |
| * Javascript Exercise: Objects | |
| */ | |
| /** | |
| * Question 1: | |
| * Modify the "booleanValue" function so that it returns "true" when it's called. | |
| */ | |
| function booleanValue() { | |
| return true; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| a { | |
| color: white; | |
| text-decoration: none; | |
| font-size: 40px; | |
| } |
| # The ideal range of your motor cycle speed 20 - 55. Over 55 is SCAREE! | |
| # Check if your moto_speed is within that range using boolean (&&, ||) | |
| # operators and comparison operators (== =< >= !=) | |
| # if your moto_speed variable is in the right range print out a good | |
| # message, aka "Wheee!" Otherwise print out an appropriate response. | |
| # Your code goes below: | |
| if moto_speed >=20 && moto_speed <=55 |