[rails] 스캐폴딩 기능 개발 기초 : 상세 화면 작성
1234567891011121314151617[elkiss@elkiss-centos controllers]$ vim books_controller.rb before_action :set_book, only: [:show, :edit, :update, :destroy]... def show end... private # Use callbacks to share common setup or constraints between actions. def set_book @book = Book.find(params[:id]) end # Never trust parameters from the scary internet, only allow the white list through. def book_params pa..
2016.08.14