30 Dec '15, 3am

Slimでクラス名を動的に作る方法について Ruby on Rails と Slim の勉強をしています。 次のerbのコードをslimで書きたいのですが4行目の埋め込みRubyをどのように書いた... https://t.co/gIX4uzjh3R

Ruby on Rails と Slim の勉強をしています。 次のerbのコードをslimで書きたいのですが4行目の埋め込みRubyをどのように書いたらいいか分かりません。 >|| <body> __<div class="container"> ____<% flash.each do |type, msg| %> ______<div class="alert alert-<%= type %>"><%= msg %></div> ____<% end %> ____<%= yield %> __</div> </body> ||< ダメ元で次のような書き方をしてみましたが、やはり上手く行きません。 slim で class名 を動的に生成して使うことは出来るのでしょうか? どなたかご教授願えないでしょうか? >|| body __.container ____- flash.each do |type, msg|

Full article: http://q.hatena.ne.jp/1451446115

Tweets

#Ruby on Rails: Datatype foreign key: #HowTo

abizy.com 02 Jan '16, 11am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#Managing users in Ruby on Rails (& ownership):...

abizy.com 02 Jan '16, 5am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#How to modify ActiveRecord_Relation output in ...

abizy.com 30 Dec '15, 12pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#calling ruby method in rails controller raises...

abizy.com 31 Dec '15, 12am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#push pop recenlty viewed session data with rub...

abizy.com 30 Dec '15, 1am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#Ruby on Rails update current user #Tech

abizy.com 03 Jan '16, 11am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#ruby on rails with daterangepicker combining t...

abizy.com 03 Jan '16, 10am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#ruby on rails - routes error porting from 3.x ...

abizy.com 01 Jan '16, 10pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#Circular model dependencies with ruby on rails...

abizy.com 08 Jan '16, 11am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#ruby on rails start and end date columns, beco...

abizy.com 03 Jan '16, 7am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#Ruby on Rails, creating Has_and_belong_to_many...

abizy.com 08 Jan '16, 12am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

Hello freelancer!! mathjax and ruby or rails by...

freelancer.com 03 Jan '16, 5pm

It appears you have JavaScript switched off. Freelancer.com requires JavaScript turned on in order to function correctly. ...

#Ruby on rails database for wordpress project [...

abizy.com 05 Jan '16, 8pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

#How do you refer an instance of a model in mod...

abizy.com 08 Jan '16, 10pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...