Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing add_routes method updating solidus to 2.1.0 #1687

Closed
sechix opened this issue Jan 19, 2017 · 2 comments
Closed

Missing add_routes method updating solidus to 2.1.0 #1687

sechix opened this issue Jan 19, 2017 · 2 comments

Comments

@sechix
Copy link

sechix commented Jan 19, 2017

Run server I get error due to missing method in spree:core: 'add_routes' .

This method is used in routes.rb file of extensions solidus_social or solidus_reviews
gem 'solidus_reviews', github: 'solidusio-contrib/solidus_reviews'
gem 'solidus_social' , github: 'solidusio-contrib/solidus_social'

Solidus_reviews/config/routes.rb

`
Spree::Core::Engine.add_routes do
namespace :admin do
resources :reviews, only: [:index, :destroy, :edit, :update] do
member do
get :approve
end
resources :feedback_reviews, only: [:index, :destroy]
end
resource :review_settings, only: [:edit, :update]
end

resources :products, only: [] do
resources :reviews, only: [:index, :new, :create] do
end
end
post '/reviews/:review_id/feedback(.:format)' => 'feedback_reviews#create', as: :feedback_reviews
end`

@tvdeyen
Copy link
Member

tvdeyen commented Jan 19, 2017

This can be solved by using Spree::Core::Engine.routes.draw

This issue is a duplicate of solidusio-contrib/solidus_reviews#5 and should be solved at that extension

@tvdeyen tvdeyen closed this as completed Jan 19, 2017
@sechix
Copy link
Author

sechix commented Jan 19, 2017

ok, I know but It was to update the gems. So I guess that I have to change the gems code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants