Episode #275 - May 25th, 2012
http://ruby5.envylabs.com/episodes/279-episode-275-may-25th-2012
Objectify Framework
Rake-rails, use rake all the time
JRuby core team members moving to Red Hat
http://www.engineyard.com/blog/2012/engine-yard-is-teaming-with-red-hat-on-jruby-2/
Three quick Rails console tips
http://37signals.com/svn/posts/3176-three-quick-rails-console-tips
Dive into your app
>> app.project_path(Project.first) => "/projects/130349783-with-attachments"
>> app.get "/735644780/projects/605816632-bcx.atom" => 200 >> app.response.body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<feed xml:lang=\"en-US\" ...
- ActionDispatch::Integration::SessionやActionDispatch::Integration::RequestHelpersの話
Try out a helper
HTMLタグを作成するときに使える
>> helper.truncate("Testing", length: 4) => "T..." >> helper.link_to "Home", app.root_path => "<a href=\"/\">Home</a>"
等々
幾つもの例が↑リンクに有り
Where does that method come from?
Method#source_location
そのメソッドのファイルや何行目か分かる
Pryを使ってるならいいけど、irbを使ってるなら役立つ(ちゃんと聞き取れていないが、そういう内容に感じた)
Getting started with Jasmine
http://www.ihid.co.uk/blog/backbone-js-coffeescript-jasmine-haml-and-rails-working-together
今がJSを始めるチャンスかもね〜
Backbone.jsみたいなフレームワークを使うとか
Rubyの文化ではテストをしっかり書くというものがある
- ツールも文化もある
JSはツールはあっても文化はない
↑のブログ記事で、JSでJasmineを使ってユニットテストをする方法が書かれている