読者です 読者をやめる 読者になる 読者になる

ボクココ

サービス開発を成功させるまでの歩み

RailsConf2012/04/24

Patella: It's Memoization into Memcached calculated in the background with Resque.

Solution
Memoization

Memcached
simple to setup
the first request still slams the server
]cache warning thing..

Memoization into memcached calculated into Resque
Send Later

Be JASON to put into memcached.

it was difficult to understand..

Ten Things You Didn't Know Rails Could Do


rails 3.2.3 can..
#TODO, #FIXME -> rake notes

rails c --sandbox -> test console

run helper method in the console helper.numer_to_currency


rails g resouce user name email token: string{6}
rials g resource user name:index email:uniq token:string{6}
string default
rails g resource article user:refenreces subject body:text

CSV to database CSVSerializer

User.pluck(:email) -> select filelds
User.uniq.pluc(:email)

User.instantiate ? without a database

full text search in postgre
add column :search, "tsvector"
create index article_search_index on articles using gin(search);

ruby extensins
write files atomically
File.atomic_write
Merge Nested Hashes
{nested:{one:1}}.deep_merge{}
remove specific keys from a hash
params .except[:controller. :action]

Views
hide comments <%# %>

change to shorter erb syntax

content_tag_for :div,@articles do |article|..

group menu entries
select_tag :grouped_,emi grouped_options_for..

Router
-> syntax??

rsync way to put static pages..


slide: http:/speakerdeck.com/u/jeg2

Evented Ruby vs Node.js

http://github.com/jch/railsconf2012