test
Ruby
code posted
by
angrysloth
created at 04 Sep 18:04
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 |
def list_by_tag options = Article.find_options_for_find_tagged_with(params[:tag_name]).merge :page => params[:page], :order => "created_at DESC" @articles = Article.paginate(options) #@articles = Article.find_tagged_with(params[:tag_name]) respond_to do |format| format.html{ render :partial => "list_by_tag", :layout => "default"} format.js{ render :layout => false } end end |
422 Bytes in 3 ms with coderay