[Ruby on Rails]Controller内でHelperに定義したメソッドを使う
Controller内でHelperに定義したメソッドを使うには
[ruby]ApplicationController.helpers.my_method(text)[/ruby]
という感じで書けば使用できる
2012年2月1日
Controller内でHelperに定義したメソッドを使うには
[ruby]ApplicationController.helpers.my_method(text)[/ruby]
という感じで書けば使用できる
Posted by GENDOSU
Railsで日付処理は、意外と簡単に出来たりする。 1日前 1.days.ago ...
Railsでsend_fileというメソッドがある これは、ファイルなどをそのま ...
Rails 3からActiveModelが追加されたが、これはどーいうものかとい ...
Aptana Studio 3でEGitを入れているのに Aptana Stud ...
モジュールがインクルードされているか it "should include Au ...