This file contains 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
source "https://rubygems.org" | |
ruby file: ".ruby-version" | |
gem "bootsnap", require: false | |
gem "faraday" | |
gem "faulty" | |
gem "puma", "~> 6.0" | |
gem "rack-canonical-host" | |
gem "rails", "~> 7.1.0" |
This file contains 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
<%= render("shared/navbar") %> | |
<div class="container"> | |
<%= render("shared/alerts") %> | |
<%= render("shared/page_header") %> | |
<%= yield %> | |
<%= render("shared/footer") %> |
This file contains 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
group :test do | |
gem "minitest" | |
gem "vcr" | |
gem "webmock", "~> 1.15.0" | |
end |
This file contains 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
Cache-Control: no-cache, max-age=0, must-revalidate, no-store |
This file contains 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
class CompressedRequests | |
def initialize(app) | |
@app = app | |
end | |
def method_handled?(env) | |
!!(env['REQUEST_METHOD'] =~ /(POST|PUT)/) | |
end | |
def encoding_handled?(env) |
This file contains 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
<input type="radio" name="ticker" value="AAPL"/>Apple<br/> | |
<input type="radio" name="ticker" value="GOOG"/>Google<br/> | |
<input type="radio" name="ticker" value="MSFT"/>Microsoft<br/> |
This file contains 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
gem 'dragonfly', '~>0.9.4' | |
group :production do | |
gem 'fog' # for Amazon S3 | |
end |
This file contains 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
~$ which ruby | |
/Users/mbrictson/.rbenv/shims/ruby | |
~$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 2.0.3 | |
- RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-darwin12.4.0] | |
- INSTALLATION DIRECTORY: /Users/mbrictson/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 | |
- RUBY EXECUTABLE: /Users/mbrictson/.rbenv/versions/2.0.0-p247/bin/ruby | |
- EXECUTABLE DIRECTORY: /Users/mbrictson/.rbenv/versions/2.0.0-p247/bin | |
- RUBYGEMS PLATFORMS: |
This file contains 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
# Shortcut for `bundle exec rails` and `bundle exec rake`. | |
# If bin/rails and bin/rake are available, use them instead as they are much | |
# faster to execute than `bundle exec`. | |
function r() { | |
if [[ "g|generate|c|console|s|server|db|dbconsole|r|runner|new" =~ $1 ]]; then | |
if [ -x bin/rails ]; then | |
bin/rails "$@" | |
elif [ -x script/rails ]; then | |
script/rails "$@" | |
else |
This file contains 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
gem 'database_cleaner', group: :test |
NewerOlder