This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def luz_e_forma_filters_path(params) | |
path = "/luz_e_forma" | |
path << "/" << params[:filters][:use] ? "all_uses" : params[:filters][:use] | |
path << "/" << params[:filters][:application] ? "all_applications" : params[:filters][:application] | |
path << "/" << params[:filters][:lamp] ? "all_lamps" : params[:filters][:lamp] | |
path << "/" << params[:filters][:designer] ? "all_designers" : params[:filters][:designer] | |
path << "/" << params[:filters][:manufacturer] ? "all_manufacturers" : params[:filters][:manufacturer] | |
path | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SitemapGenerator::Sitemap.default_host = 'http://leonardofinotti.com' | |
SitemapGenerator::Sitemap.create do | |
add root_path, changefreq: 'daily', priority: 1.0 | |
add about_path, changefreq: 'monthly', priority: 0.9 | |
# Projects | |
Project.published.each do |project| | |
add project_path(project), priority: 0.8, changefreq: 'weekly', lastmod: project.updated_at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'publications/index' do | |
describe 'title' do | |
before do | |
%w(authors medias countries dates publications).each { |var| assign(var, []) } | |
end | |
it 'should set with author name' do | |
assign(:author, 'agnaldo farias') |
NewerOlder