Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Sequel でテーブル ビューを作成し、ファイルに入れましたdb_views.rb。
db_views.rb
require 'db_manip' Db_manip::DB.create_view(:bn_view,'SELECT ...')
「ファット モデル シン コントローラー」の実践に従うために、:bn_view.
:bn_view
やってみました:
class BnView < Sequel::Model(:bn_view) def foo # implement your method here end end