2015-03-01から1ヶ月間の記事一覧
RubyonRailsでHamlを使ってアクションindexを用いたいときのエラー: syntax error, unexpected keyword_ensure, expecting keyword_end 元のコード - @questions.each do |question| %tr %td= question.question_title %td= question.created_at %td= quest…
How to add an image to the contents using HAML?stackoverflow.com 33down voteaccepted Outside any kind of framework: %img(src="/images/loading.gif") The older, more verbose but flexible syntax: %img{:src => "/images/loading.gif"} If you’re …