サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
nasir.wordpress.com
A post on the yahoo finance / stock gem had been overdue for a long time. Last week I added the xml support for the result formatting and published a new version of the gem. So I thought its a good time to write a bit about how I got started with it, implementation details, usage, etc. Problem My mother has a portfolio of stocks and it became a bit difficult for her to keep an eye on their perform
We do pagination in Rails by using its built in paginate method in our controller def display_data @display_data_pages, @display_data = paginate(:location_data, :conditions => ["loc.updated_at < ?", params[:date]], :joins => "as loc inner join location_address as locadd on loc.id = locadd.id" :per_page => 10, :order => "location_name") end Often we would like to put this code inside our model main
このページを最初にブックマークしてみませんか?
『nasir.wordpress.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く