2013-09-01から1ヶ月間の記事一覧

Rails4では正規表現

厳しくなったね。 The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option? mutiline: trueのオプションを指定するこ…

rake aborted! 'twitter/bootstrap/bootstrap.less' wasn't found にはまったよ。

ちなみに解決方法はこちらです。 http://319ring.net/blog/archives/2293 Rails4 + bootstrap を利用しているだけど、 bundle exec time rake assets:precompile RAILS_ENV=productionがうまくいかない。 rake aborted! 'twitter/bootstrap/bootstrap.less' …

ruby 2.0に導入されたmodule#prependを試してみました。

最近、暑いですね。体がだるいし、何もしたくない〜〜〜。 しかし、何もしないことも、我慢できない。。。。。。。なので、 ruby2.0に新しく入れているメソッド prependを試してみました。 メソッド探索の経路が変わるわけです。 今までは一番強かったのは、…