bug + routes
This commit is contained in:
parent
33f5c8b636
commit
4b737c3405
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user