Questions tagged as 'ruby-on-rails'

0
answers

There was an error accessing '/home/userlinux/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions'

I have a problem creating new applications in Ruby on Rails ; I execute the rails new "myapp" command and it gives me this error:    There was an error accessing /home/userlinux/.bundle/cache/compact_index/rubygems.org.443.29b0360b...
asked by 17.09.2017 / 01:06
1
answer

Assign model to session variable in rails 4

I would like to know if it is possible to save an article object in a variable of session for example I have this code but it gives me this error:    undefined method 'add_cesta' for "#": String This is what I'm trying to do: Th...
asked by 08.09.2017 / 04:23
1
answer

undefined method 'grid' for ## Class: 0x007f89aefb1370: 0x007f89b035c078 [closed]

ERROR: undefined method grid 'for # < #: 0x007f89b035c078 >' home.haml .full-height.row.middle-xs.white-text.center-xs.main-background.no-margin{style: "background-color:red;"} =grid xs:10,sm:8,md:6,lg:4 do .big-padding.b...
asked by 10.08.2017 / 17:51
2
answers

XML API Product FEED

I want to develop a product feed with my suppliers. This is the XML that the API gives me with the available or exhausted products of this distributor to obtain general information about the product but mainly stock, sku, price ... <Item>...
asked by 27.07.2017 / 19:57
1
answer

Use form that corresponds to another controller

Context Form is created through command $ rails g scaffold Cotizacion Template installed from link Objective and problem The idea is to integrate the form new , which creates a new quote to the bootstrap template. Un...
asked by 21.07.2017 / 20:12
1
answer

Working with modals and Ajax

I need to know how I can process the data collected in a modal and then update the selected field. Being more concrete: In a view of my app I have a list of workers, which provides the possibility of adding a new one, this process I want to d...
asked by 24.05.2017 / 23:27
0
answers

when creating a file with rails and webpack generates an error when inserting

create a file with rails and webpack: rails new myapp --webpack=vue and create a folder inside rails: app/javascript └── packs ├── app.vue └── hello_vue.js app.vue: <template> <div id="app"> <ul v-for="re...
asked by 26.05.2017 / 00:19
1
answer

Spree gem checkout error, error "We are unable to calculate shipping rates for the selected items."

I am starting an ecommerce and use Spree as a gem gem 'spree', '~> 3.2.0' gem 'spree_auth_devise', '~> 3.2.0.beta' gem 'spree_gateway', '~> 3.2.0.beta' when wanting to make a payment I get this alert:    We are unable to calcula...
asked by 29.04.2017 / 02:28
1
answer

Show name and extension of a file when editing form using carrierwave gem in rails

I'm using the gem carrierwave to upload documents in my project, and it works perfect, my problem is when I want to edit the form, having previously saved a document, the button to upload a document or image appears with the caption "No f...
asked by 07.04.2017 / 14:42
1
answer

rails does not return data to filters.js.erb with ajax

This alert should not be executed after executing the filters method: def filtros @apps= App.where(rol: params[:rol]) .or(App.where(plataforma:params[:plataforma]) .or(App.where(area: params[:area]))) respond_to do |for...
asked by 29.03.2017 / 01:06