{"published":"2013-03-17 00:00:00","description":"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u30d3\u30e5\u30fc\u304b\u3089\uff08\u30d8\u30eb\u30d1\u30fc\u3082\uff1f\uff09\u547c\u3073\u305f\u3044\u6642\u306b\u4f7f\u3046 for example #228 Sortable Table Columns - RailsCasts app/controllers/products_controller.rb class ProductsController < ApplicationController helper_method :sort_column, :sort_direction def index @products = Product.order(sort_column + ' ' + sort_direction) end priva\u2026","height":"190","author_url":"https://blog.hatena.ne.jp/CortYuming/","width":"100%","provider_url":"https://hatena.blog","categories":["Rails"],"provider_name":"Hatena Blog","type":"rich","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","title":" helper_method \u306e\u30e1\u30e2","blog_url":"https://cortyuming.hateblo.jp/","url":"https://cortyuming.hateblo.jp/entry/20130317/p2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F20130317%2Fp2\" title=\" helper_method \u306e\u30e1\u30e2 - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"CortYuming","image_url":null,"version":"1.0"}