Skip to content

Instantly share code, notes, and snippets.

@DmitryBash
Last active May 1, 2019 01:24
Show Gist options
  • Save DmitryBash/798bee2a57e667bdc7803239d7905eeb to your computer and use it in GitHub Desktop.
Save DmitryBash/798bee2a57e667bdc7803239d7905eeb to your computer and use it in GitHub Desktop.
rails
https://stackoverflow.com/questions/34424154/rails-validate-uniqueness-of-two-columns-together
https://matt.aimonetti.net/posts/2013/11/30/sharing-rails-sessions-with-non-ruby-apps/
https://codeburst.io/elixir-beside-rails-2b94414bcb03
https://www.google.com/search?q=rails+associations+tips&oq=rails+associations+tips&aqs=chrome..69i57j69i65j69i60j0l3.4166j0j7&sourceid=chrome&ie=UTF-8
https://blog.bigbinary.com/2013/07/01/preload-vs-eager-load-vs-joins-vs-includes.html
https://www.howtographql.com/graphql-ruby/0-introduction/
http://www.mitchcrowe.com/10-most-underused-activerecord-relation-methods/
https://github.com/leandromoreira/redlock-rb
https://medium.com/@devinburnette/be-prepared-7768d1a111e1
https://gist.github.com/rafaelsales/86ca62c45108abe7162a87813fea8e7e - what i dislike
https://apidock.com/ruby/String/tr
http://rusrails.ru/active-record-associations
http://www.davidverhasselt.com/set-attributes-in-activerecord/
https://medium.com/into-the-forest/rails-migrations-tricks-guide-code-cheatsheet-included-dca935354f22
https://dry-rb.org/gems/dry-monads/
https://medium.com/pepegramming/do-notation-1e0840a6dbe0
http://raysrashmi.com/2014/07/23/rails-routes-constraints/
http://rusrails.ru/rails-routing
https://davidverhasselt.com/set-attributes-in-activerecord/
https://medium.com/rubyinside/how-we-halved-our-memory-consumption-in-rails-with-jemalloc-86afa4e54aa3
https://thoughtbot.com/upcase/practice
http://blog.plataformatec.com.br/2013/02/active-record-scopes-vs-class-methods/
https://github.com/rubocop-hq/rails-style-guide/blob/master/README.md#activerecord
https://github.com/raventid/es-airline-app
https://callahan.io/blog/2014/10/08/behind-the-scenes-of-the-has-many-active-record-association
https://content.pivotal.io/blog/migrating-from-a-single-rails-app-to-a-suite-of-rails-engines
https://guides.rubyonrails.org/active_support_core_extensions.html#method-delegation
https://github.com/rails/rails/blob/fc5dd0b85189811062c85520fd70de8389b55aeb/activesupport/lib/active_support/core_ext/module/delegation.rb#L154
https://github.com/solnic/virtus
http://railscasts.com/episodes/167-more-on-virtual-attributes?view=asciicast
https://api.rubyonrails.org/classes/ActiveRecord/Attributes/ClassMethods.html
https://apidock.com/rails/Hash/reverse_merge
https://collectiveidea.com/blog/archives/2016/12/16/creating-and-testing-stripe-webhooks-using-stripeevent
https://github.com/karafka/example-app
https://api.rubyonrails.org/classes/Enumerable.html
https://api.rubyonrails.org/classes/ActiveRecord/Batches.html
https://www.driftingruby.com/episodes/grab-bag-of-ruby-and-ruby-on-rails-tricks
https://apidock.com/rails/ActiveRecord/SpawnMethods/except
https://medium.com/@mariacodes/how-to-use-nil-blank-present-exists-in-rails-5-fe03e78ab979
https://driggl.com/blog/a/handling-exceptions-in-rails-applications
https://apidock.com/rails/Hash/with_indifferent_access
https://rubyplus.com/articles/1351-Add-New-Credit-Card-using-Stripe-API
http://rmosolgo.github.io/blog/2015/03/12/move-activerecord-scopes-into-separate-files/
https://medium.com/@pdrgc/refactoring-long-aasm-modules-d0e331f2054d
https://api.rubyonrails.org/classes/Hash.html#method-i-transform_keys
https://apidock.com/rails/ActiveRecord/Base/attributes
https://stackoverflow.com/questions/46988394/dynamically-set-initial-state-with-aasm-gem
https://iridakos.com/tutorials/2017/12/03/elasticsearch-and-rails-tutorial.html
http://rusrails.ru/rails-database-migrations
https://sipsandbits.com/2018/04/30/using-database-native-enums-with-rails/
https://hackernoon.com/performing-custom-validations-in-rails-an-example-9a373e807144
https://stackoverflow.com/questions/10780817/hash-with-indifferent-access
https://www.google.com.ua/search?ei=NLn2W6GADsSosAGPoI3AAw&q=rails+includes+where&oq=rails+includes+where&gs_l=psy-ab.3..0i67j0l2j0i22i30j0i22i10i30j0i22i30l5.198220.200476..201615...0.0..0.103.1398.14j2......0....1..gws-wiz.......0i71j33i22i29i30j33i10.2X49G4i7-eU
https://mildlyinternet.com/code/includes-with-conditions.html
http://tomdallimore.com/blog/includes-vs-joins-in-rails-when-and-where/
https://stackoverflow.com/questions/1208636/rails-include-vs-joins
http://blog.scoutapp.com/articles/2017/01/24/activerecord-includes-vs-joins-vs-preload-vs-eager_load-when-and-where
https://api.rubyonrails.org/classes/Array.html#method-i-to_sentence
https://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#method-i-validates_uniqueness_of
https://api.rubyonrails.org/classes/ActiveRecord/Transactions/ClassMethods.html#label-Nested+transactions
http://geekdirt.com/blog/nested-transations-in-rails/
https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-save-21
https://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html
https://guides.rubyonrails.org/active_record_validations.html#on
https://github.com/thoughtbot/shoulda-matchers/blob/master/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb#L42
https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-save-21
https://api.rubyonrails.org/classes/AbstractController/Callbacks/ClassMethods.html#method-i-prepend_before_action
https://medium.com/@devinburnette/be-prepared-7768d1a111e1
https://dev.to/harrymlevine/rails-with-react---one-repo---part-1-3k7o
https://github.com/mperham/sidekiq/issues/3788
https://techbrownbags.wordpress.com/2013/11/27/rails-postgis-and-your-models/
https://gist.github.com/mxgoncharov/3c35f4cfc946837230b7de9be65dfa21 - api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment