diff --git a/app/views/portfolios/show.html.haml b/app/views/portfolios/show.html.haml index acb5e9b..6e82a03 100644 --- a/app/views/portfolios/show.html.haml +++ b/app/views/portfolios/show.html.haml @@ -2,7 +2,7 @@ -@portfolio.images.each do |img| =link_to image_tag(img.photo.thumb.url, :style => "height:100px;float:left;padding:5px;"), portfolio_path(:slug => @portfolio.slug, :format => "js", :page => img.page(@portfolio)), :onclick => '$("#small_index").toggleClass("active");' ,:remote => true - portfolio_path(:id => img.portfolios.first.slug, :page => img.page(img.portfolios.first)) + .portfolio -if 1==2 .intro diff --git a/config/routes.rb b/config/routes.rb index ca0150e..42e0a9d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -77,6 +77,8 @@ SitePerso::Application.routes.draw do # You can have the root of your site routed with "root" # just remember to delete public/index.html. + match '*path' => redirect('/') + root :to => 'portfolios#index' # See how all your routes lay out with "rake routes"