problème routes
This commit is contained in:
parent
4a5422ac9f
commit
a353d767b6
@ -11,7 +11,7 @@ Inauguration le samedi 23 mars à 11h.
|
|||||||
|
|
||||||
|
|
||||||
-@index_images.each do |img|
|
-@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;"}
|
%p{:style => "clear:both;height:2px;"}
|
||||||
:javascript
|
:javascript
|
||||||
function size_index_images(){
|
function size_index_images(){
|
||||||
|
@ -4,9 +4,11 @@ SitePerso::Application.routes.draw do
|
|||||||
|
|
||||||
|
|
||||||
match ":id.:format" => 'pages#show', :as => :page, :format => "html"
|
match ":id.:format" => 'pages#show', :as => :page, :format => "html"
|
||||||
|
match "portfolio/:id/:page.:format" => 'portfolios#show',:page => "1", :as => :portfolio, :format => "html"
|
||||||
|
|
||||||
resources :portfolios
|
resources :portfolios
|
||||||
|
|
||||||
#match "galerie/:slug.:format" => 'portfolios#show', :as => :portfolio, :format => "html", :via => :get
|
|
||||||
|
|
||||||
namespace :admin do
|
namespace :admin do
|
||||||
root :to => "dashboard#index"
|
root :to => "dashboard#index"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user