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.
Haml にテーブルがあり、テーブル ヘッダーの ID を ruby 変数 @title_id に従って変更できるようにしたいと考えています。疑似コードでは、これが私が達成しようとしていることです:
%th.@title_id
これは次のようになります。
%th{:id => @title_id}