manuca / spree_mercado_pago

Mercado Pago payment method for Spree
BSD 3-Clause "New" or "Revised" License
18 stars 32 forks source link

Sprockets::FileNotFound in Spree::Admin::GeneralSettings#edit #4

Closed skqr closed 9 years ago

skqr commented 9 years ago

Hi, @manuca! Thanks for the module :smiley_cat:

I'm new to Spree (and Rails) so this is likely my fault, but here it goes.

This is what my Gemfile looks like.

gem 'spree_mercado_pago', github: 'manuca/spree_mercado_pago'#, branch: '2-4-stable'

And I'm getting the following error when trying to configure the module.

capture du 2015-01-06 20 15 15

Ideas?

Thanks!

manuca commented 9 years ago

@skqr thanks. Did you do?

bundle exec rails g spree_mercado_pago:install

I'm currently taking some days out for holidays but if this doesn't solve it promise I'll get back to this as soon as I'm back to work.

skqr commented 9 years ago

Hi, @manuca. Thanks for the swift reply!

Here's my whole command log, it includes the VM boot and the Rails server start.

➜  spree_vagrant git:(master) ✗ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'chef/ubuntu-14.04' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 3000 => 3001 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /home/skqr/Projects/SKQR/spree_vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: to force provisioning. Provisioners marked to run always will still run.
➜  spree_vagrant git:(master) ✗ vagrant ssh
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Tue Jan  6 21:49:02 2015 from 10.0.2.2

Here's the command running.

vagrant@vagrant:~$ cd /vagrant/spree/
vagrant@vagrant:/vagrant/spree$ bundle exec rails g spree_mercado_pago:install
[WARNING] You are not setting Devise.secret_key within your application!
You must set this in config/initializers/devise.rb. Here's an example:

Devise.secret_key = "8d9b1f9a891b4e3eaae86456d21ed79e135040ecf150eaa93954b3a016eebe7073e8a6bc8574f4649f07fd298f4831ca4964"
      append  vendor/assets/javascripts/spree/frontend/all.js
      append  vendor/assets/javascripts/spree/backend/all.js
      insert  vendor/assets/stylesheets/spree/frontend/all.css
      insert  vendor/assets/stylesheets/spree/backend/all.css
         run  bundle exec rake railties:install:migrations FROM=spree_mercado_pago from "."
Would you like to run the migrations now? [Y/n] y
         run  bundle exec rake db:migrate from "."
[WARNING] You are not setting Devise.secret_key within your application!
You must set this in config/initializers/devise.rb. Here's an example:

Devise.secret_key = "ccb763bcb637864c11bf29161d5ebeaf3f9e00e129a597482ff16dc240d1839edb67f8e50a8df410442e5a2db4fb828160de"
vagrant@vagrant:/vagrant/spree$ rails server
=> Booting WEBrick
=> Rails 4.1.8 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[WARNING] You are not setting Devise.secret_key within your application!
You must set this in config/initializers/devise.rb. Here's an example:

Devise.secret_key = "32eb6959e933ac3480b9ba9b4d912c8519e6d8c663199eb63a35271a8d3421a437973365cad77d6bf67223259a3cb6fc6559"
[2015-01-10 20:49:25] INFO  WEBrick 1.3.1
[2015-01-10 20:49:25] INFO  ruby 2.1.5 (2014-11-13) [x86_64-linux]
[2015-01-10 20:49:25] INFO  WEBrick::HTTPServer#start: pid=1596 port=3000

The server appears to start properly, but I still get the same error. Am I missing something that might generate the missing asset file?

Thanks again!

roadev commented 9 years ago

I get the same error... I already run: bundle exec rails g spree_mercado_pago:install

brunitob commented 9 years ago

Hi Guys, Im getting the same error. Problem: this line

 *= require spree/frontend/spree_mercado_pago

From frontend/backend all.css and all.js

Also I detected after bundle exec rails g spree_mercado_pago:install and db:migrate there is no migration to run.

I checked at psql, table mercado_pago_notifications do not exist. When I tried to test IPN, POST request to /mercado_pago/ipn said that the table is missing.

I think there´s some problem with the installation.

Im using spree 2-3-stable.

Thanks!

manuca commented 9 years ago

Guys sorry for the delay, just took a general look at this issue. It seems the paths generated on installation for the assets inside the gem are messed up. It would be great if you could try a branch I opened to fix this issue.

https://github.com/manuca/spree_mercado_pago/tree/fix-issue-4

Could you all try this and tell me if it solves the issue? Thanks

brunitob commented 9 years ago

https://github.com/manuca/spree_mercado_pago/tree/fix-issue-4 fixed the issues with css/js files! Thanks a lot.