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
| def new | |
| @model = Model.new | |
| @Title = "New Model" | |
| end | |
| def create | |
| @model = Model.new(params[:model]) | |
| if @model.save | |
| redirect_to model_path(@model), :flash => {:success => "Model Created"} |
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
| products GET /products(.:format) products#index | |
| POST /products(.:format) products#create | |
| new_product GET /products/new(.:format) products#new | |
| edit_product GET /products/:id/edit(.:format) products#edit | |
| product GET /products/:id(.:format) products#show | |
| PUT /products/:id(.:format) products#update | |
| DELETE /products/:id(.:format) products#destroy |
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 'typhoeus' | |
| episode_URLs = Array.new | |
| URL_regex = /(?<url>http.*)\/(?<filename>.*)$/ | |
| URL_list = File.open("1upshow_urls.txt") # Read in the 1up show file | |
| URL_list.each{ | |
| |line| | |
| found_URL = URL_regex.match(line) |
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
| # Looks at the text file provided and uses my format of spec sheet hours to calculate the total hours of the project. | |
| raise "Must provide Source File!" if ARGV.size < 1 | |
| total_hours = 0 | |
| spec_sheet = File.open(ARGV[0]) | |
| spec_sheet.each{ |line| | |
| specced_hours = /\[[^0-9.]*(?<hours>\d*\.\d+|[^\.]\d*).*\]/.match(line) |
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
| { | |
| "framework": "jasmine", | |
| "src_files": [ | |
| "app/assets/javascripts/*.js", | |
| "spec/scripts/*.js" | |
| ], | |
| "serve_files": [ | |
| "public/assets/*.js", | |
| "spec/scripts/*.js" | |
| ], |
NewerOlder