problème routes

This commit is contained in:
Nico 2013-02-08 12:33:49 +01:00
parent 4a5422ac9f
commit a353d767b6
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Inauguration le samedi 23 mars à 11h.
-@index_images.each do |img|
=link_to image_tag(img.photo.square.url), portfolio_path(:id => img.portfolios.first.slug, :page => img.page(img.portfolios.first),:position => img.position(img.portfolios.first))
=link_to image_tag(img.photo.square.url), portfolio_path(:id => img.portfolios.first.slug, :page => img.page(img.portfolios.first))
%p{:style => "clear:both;height:2px;"}
:javascript
function size_index_images(){

View File

@ -4,9 +4,11 @@ SitePerso::Application.routes.draw do
match ":id.:format" => 'pages#show', :as => :page, :format => "html"
match "portfolio/:id/:page.:format" => 'portfolios#show',:page => "1", :as => :portfolio, :format => "html"
resources :portfolios
#match "galerie/:slug.:format" => 'portfolios#show', :as => :portfolio, :format => "html", :via => :get
namespace :admin do
root :to => "dashboard#index"