This file contains hidden or 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
| json.array!(@students) do |student| | |
| json.extract! student, :id, :name, :email, :phone, :location, :employment | |
| json.url student_url(student, format: :json) | |
| end |
This file contains hidden or 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
| var FluffyRouter = Backbone.Router.extend({ | |
| routes: { | |
| 'seal panda bunny': 'update', | |
| '*default': 'update' | |
| }, | |
| update: function(){ | |
| var id = Backbone.history.fragment || 'bunny'; | |
| $('.view').hide(); | |
| $('#' + id).show(); | |
| this.navigate(id); |
This file contains hidden or 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
| require 'faker' | |
| output = [] | |
| dates = [] | |
| 20.times do | |
| output << Faker::Commerce.product_name | |
| end | |
| 20.times do |
NewerOlder