-
Notifications
You must be signed in to change notification settings - Fork 120
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
NoMethodError in Spree::Admin::Shipments#index #73
Comments
facing the same problem now. did you find the solution? |
Hi dennisluan |
Hey nobicycle and dennisluan: The answer can be found here (scroll to the bottom): #71 I tried commenting out line 39 like suggested in the link provided and it worked for me. Good luck |
Hi @illustriam, I don't advise you do this, cause this is only a temporary solution. whenever you bundle update again, it will get overwritten. Maybe you want to comment the relevant lines at Spree_drop_ship source codes |
Have the same issue... Somebody here to fix this? |
I put in a pull request to fix this issue here: #74 . The "state" attribute on the shipping model was not ransackable, so adding the following line to your shipping model decorator fixes this issue:
|
Hello.
Thanks for this extension.
Running Spree 3.04, all appears to install OK. The admin interface shows the new elements
Suppliers - OK, I can create them.
Configuration.Drop Ship Settings - OK I can change config.
Shipments - causes the error displayed below:
Regards
NoMethodError in Spree::Admin::Shipments#index
Showing /home/user/.bundler/ruby/2.2.0/spree_drop_ship-132e9c037ade/app/views/spree/admin/shipments/index.html.erb where line #39 raised:
undefined method `state_eq' for #Ransack::Search:0x007f7a8cba5190
Extracted source (around line #101):
99
100
101
102
103
104
Rails.root: /home/user/Projects/Toraja_Art_Craft
Application Trace | Framework Trace | Full Trace
ransack (1.4.1) lib/ransack/search.rb:101:in
method_missing' actionview (4.2.2) lib/action_view/helpers/tags/base.rb:28:in
public_send'actionview (4.2.2) lib/action_view/helpers/tags/base.rb:28:in
value' actionview (4.2.2) lib/action_view/helpers/tags/select.rb:16:in
block in render'actionview (4.2.2) lib/action_view/helpers/tags/select.rb:16:in
fetch' actionview (4.2.2) lib/action_view/helpers/tags/select.rb:16:in
render'actionview (4.2.2) lib/action_view/helpers/form_options_helper.rb:163:in
select' actionview (4.2.2) lib/action_view/helpers/form_options_helper.rb:777:in
select'/home/user/.bundler/ruby/2.2.0/spree_drop_ship-132e9c037ade/app/views/spree/admin/shipments/index.html.erb:39:in
block (2 levels) in _4b92abb4ca2e84a0dbbf6d82dcbeebc1' actionview (4.2.2) lib/action_view/helpers/capture_helper.rb:38:in
block in capture'actionview (4.2.2) lib/action_view/helpers/capture_helper.rb:200:in
with_output_buffer' actionview (4.2.2) lib/action_view/helpers/capture_helper.rb:38:in
capture'The text was updated successfully, but these errors were encountered: