photomix/app/controllers/home_controller.rb
Alexander Negoda 7caba3f464 fix translate
2012-07-29 20:37:56 +04:00

16 lines
427 B
Ruby

class HomeController < ApplicationController
skip_before_filter :authenticate_user!, :only => [:index]
add_breadcrumb I18n.t(:home_page), :root_path
def index
@collections = Collection.popular.limit(12)
@popular_photos = Photo.popular.limit(10)
respond_to do |format|
format.html
format.json { render :json => @collections }
format.xml { render :xml => @collections }
end
end
end