bug + routes

This commit is contained in:
Nico 2013-02-10 14:05:53 +01:00
parent 33f5c8b636
commit 4b737c3405
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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"