Giter Site home page Giter Site logo

tai-fujio / rails_exam01_bugfix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diveintocode-corp/rails_exam01_bugfix

0.0 1.0 0.0 87 KB

Sample App includes EasyBugs for beginner of Ruby on Rails (Level 1 BugFix)

Ruby 75.20% JavaScript 2.94% CSS 1.77% HTML 20.09%

rails_exam01_bugfix's Introduction

RailsExam:01 Bugfix

This application contains some bugs for beginner of RoR.

How to Setup(課題実施時にこの項目は必ず実施して下さい!)

step1: fork this Repository

step2: checkout your branch and run server

git checkout -b bugfix
bundle install
rails db:create
rails db:migrate
rails db:seed
rails server

step3: push your commits and create PullRequest on Github

How to push commit to Github

git add -A
git commit -m "Fix: [write your message]"
git push origin bugfix

Requirement(Option)

When you fix bugs, write comment Cause and Reason above your code.

:en
# ErrorCause: XXX
# FixReason: XXX
your code

:jp
# エラー原因: XXX
# 修正の意図: XXX
your code

class Task < ApplicationRecord
  # ErrorCause: Can't use association @task.labels
  # FixReason: Fix typo (label --> labels)
  has_many :labels
end

System Versions

  • Ruby version
    2.6.3

  • Rails version
    2.5.3


How to Install Ruby 2.6.3

brew upgrade rbenv ruby-build
rbenv install 2.6.3
rbenv local 2.6.3


Appendix(付録)

下記のGemを導入しています。

  1. デバッグ用:5gems
gem 'better_errors'
gem 'binding_of_caller'
gem 'pry-rails'
gem 'pry-byebug'
gem 'pry-doc' https://qiita.com/joker1007/items/42f00b12c65bbec0e50a
  1. コード解析用:2gems
gem 'rubocop'
gem 'rails_best_practices'

.rubocop.yml も設定済みです。 こちらの詳細は直接説明致します。

また、Siderなどの解析ツールと連携させるのも良いかもしれません。

rails_exam01_bugfix's People

Contributors

yuji91 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.