Permalink
Browse files

support /portfolio route.

  • Loading branch information...
1 parent 11e99cf commit 266d81fb6779aa9943341229285b3cd1ec50ef1a @parndt parndt committed Apr 13, 2010
Showing with 12 additions and 12 deletions.
  1. +8 −8 config/routes.rb
  2. +1 −1 rails/init.rb
  3. +2 −2 readme.md
  4. +1 −1 refinerycms-portfolio.gemspec
View
@@ -1,5 +1,13 @@
ActionController::Routing::Routes.draw do |map|
+ map.resources :portfolio do |portfolio|
+ portfolio.resources :portfolio, :as => :portfolio
+ end
+
+ map.namespace(:admin) do |admin|
+ admin.resources :portfolio_entries, :as => :portfolio, :collection => {:emancipate => :get}
+ end
+
if RefinerySetting.table_exists? and RefinerySetting.find_or_set(:multi_level_portfolio, true)
map.portfolio_project "/portfolio/:id/projects/:portfolio_id", :controller => "portfolio", :action => "show"
map.portfolio_image "/portfolio/:id/projects/:portfolio_id/:image_id", :controller => "portfolio", :action => "show"
@@ -10,12 +18,4 @@
map.portfolio "/portfolio/:id/", :controller => 'portfolio', :action => 'show'
- map.resources :portfolio do |portfolio|
- portfolio.resources :portfolio, :as => :portfolio
- end
-
- map.namespace(:admin) do |admin|
- admin.resources :portfolio_entries, :as => :portfolio, :collection => {:emancipate => :get}
- end
-
end
View
@@ -3,7 +3,7 @@
plugin.title = "Portfolio"
plugin.description = "Manage a portfolio"
plugin.url = "/admin/#{plugin.title.downcase}"
- plugin.version = '0.9.5.2'
+ plugin.version = '0.9.5.3'
plugin.menu_match = /admin\/portfolio(_entries)?/
plugin.activity = {
:class => PortfolioEntry,
View
@@ -28,14 +28,14 @@ Then run:
Then place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
- config.gem "refinerycms-portfolio", :version => ">= 0.9.5.2", :lib => "portfolio", :source => "http://gemcutter.org"
+ config.gem "refinerycms-portfolio", :version => ">= 0.9.5.3", :lib => "portfolio", :source => "http://gemcutter.org"
..and follow the instructions!
### Method Two
Place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
- config.gem "refinerycms-portfolio", :version => ">= 0.9.5.2", :lib => "portfolio", :source => "http://gemcutter.org"
+ config.gem "refinerycms-portfolio", :version => ">= 0.9.5.3", :lib => "portfolio", :source => "http://gemcutter.org"
Then run in your application's directory:
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = %q{refinerycms-portfolio}
- s.version = "0.9.5.2"
+ s.version = "0.9.5.3"
s.authors = ["Resolve Digital", "Philip Arndt"]
s.date = %q{2010-04-13}

0 comments on commit 266d81f

Please sign in to comment.