Questions tagged as 'ruby'

0
answers

Rails, What is the best way to show the images in the view before uploading it to the bd, with carrierwave?

I have been creating a view in the form, which has images, but I can not find the way to show the previous images that I am selecting to leave or remove them before uploading them to the bd, either to create or to edit. I enclose my form and I a...
asked by 08.12.2018 / 22:38
1
answer

Login facebook rails

I am developing an app in Rails that will be integrated with facebook at the beginning of the session, but as I test the code I get the following error. uninitialized constant Users I'm using Devise and omniauth-facebook devise.rb c...
asked by 29.10.2018 / 21:02
1
answer

Read and write assignments in ruby

create two methods: load_tasks load_tasks receives the name of a file and must return an array of hashes with the information found in the file. The file format is: 1, Do tasks, true 2, Washing clothes, false The method shou...
asked by 24.10.2018 / 20:09
0
answers

'require': can not modify frozen SystemStackError (FrozenError) :: Ruby

When I run my app that I cloned from Heroku, it marks me the following: C:\Sites\salty-depths-42099>rails s => Booting WEBrick => Rails 4.2.4 application starting in development on http://localhost:3000 => Run 'rails server -h' for...
asked by 18.10.2018 / 19:06
0
answers

AbstractController :: Helpers :: MissingHelperError

I'm starting on ruby on rails and trying to run the localhost:3000 I get this error:    Missing helper file   helpers / c: /users/al_car/documents/carlosandradehdez/appsweb/facilito_social/app/helpers/application_helper.rb_helper.rb  ...
asked by 28.09.2018 / 02:03
2
answers

Copy image from one model to another

I have a question I am currently using carrierwave and google storage to store images, but I wanted to know if there is a way to take the image of the model to and assign it to another model so that it stores that same image. currently try th...
asked by 26.09.2018 / 21:44
1
answer

Undefined method '' in Ruby

I have been commissioned to make a version of the Monopoly game called Qytetet. Currently I have 4 Ruby files, 2 of them are classes and the other 2 are modules (one of them contains another class). I explain a little, Surprise Class : It h...
asked by 26.09.2018 / 16:30
0
answers

Rails Server does not start

Good morning to everything, I am learning Rails, I am trying to run my first application, for this I must start the Rails Server, but it votes me Error. I was looking at Google and found that it was because there were missing JavaScript th...
asked by 23.08.2018 / 03:18
0
answers

Error with Haml-rails: the file or directory is not found

It happens to me that I get this error when applying this command with Rails 5 rails generate haml:application_layout convert It does not convert anything to me and I get this on the console    Errno :: ENOENT: No such file or directory...
asked by 28.08.2018 / 21:36
0
answers

uninitialized constant Spree :: CustomModelPingsController :: CustomModelPing

Hi, I'm new to Rails and I'm working with the Spree Ecommerce core. Generate a new customized model (CustomModelPing) and when inserting data, I receive the following error. uninitialized constant Spree::CustomModelPingsContro...
asked by 23.08.2018 / 02:35