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
If you're receiving the following error: | |
Rails is not currently installed on this system. | |
Then you're probably on a Ruby version which doesn't have Rails installed. | |
To fix, switch to a Ruby version which does have Rails installed. | |
If you've tried to install Rails, and you're receiving a PERMISSIONS error, | |
then you're probably using the default system-installed Ruby, instead of the Ruby version manager-installed version (e.g. installed using ruby-install). |
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
To install chruby and ruby-install: | |
brew install chruby ruby-install | |
To install Ruby using ruby-install: | |
ruby-install ruby 2.7.1 | |
NOTE: You can find latest stable version of Ruby here: https://www.ruby-lang.org/en/downloads/ | |
If you have issues installing Ruby then try the following: | |
brew install openssl@3 | |
ruby-install 3.2.2 -- --with-openssl-dir=$(brew --prefix openssl@3) |
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 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
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
alias a='ack' | |
alias a?='alias | grep -i' | |
alias adx='rake db:drop && rake db:create && heroku pg:transfer --from black --to postgres://postgres@localhost/staq_development --confirm staqweb --app staqweb && rails r "User.all.each { |u| u.update_attribute(:password,%q(password)) }" && rake db:test:prepare' | |
alias b='bundle' | |
alias bb='bundle install --binstubs=.bundle/bin --path=.bundle/gems && bundle package --all && reload ; sd' | |
alias bc='bin/console' | |
alias be='bundle exec' | |
alias bea='bundle exec annotate' | |
alias bu='bundle update' | |
alias bus='bundle update staq_extraction' |