Questions tagged as 'ruby-on-rails'

1
answer

1 error prohibiting this request from being saved: Tought must exist

I am new using ruby on rails, and what I want to do is to use the information from another form generated with scaffold, in the requested tab, I want to call the field of tpedido and the information appears in the form, but at the moment...
asked by 28.12.2018 / 03:44
1
answer

Error during cocoon implementation

I have a model Describete that is associated with a user. In the same view of describe there should be a 'add more' button, but it does not appear. Having the following error:    undefined local variable or method 'form' if I chang...
asked by 16.12.2018 / 20:19
2
answers

Because using double or single quotes in Ruby on Rails changes the result that is printed?

Because changing the syntax of the code using double or single quotes changes the result that is printed? <puts"hola \n nueva " puts'hola \n nueva '>     
asked by 04.01.2019 / 06:06
1
answer

PDF on ruby on rails

I have the following problem, I have a controller in which I make a query in which I get 10 different values each time I perform the query; but also at the same time I generate a pdf with wicked_pdf with the values with the values of the same qu...
asked by 02.11.2018 / 00:08
1
answer

FATAL: database "db / development.sqlite3" does not exist [closed]

I can not find the solution to this problem     
asked by 21.08.2018 / 00:59
3
answers

How to generate the config / secrets.yml file in Rails?

It turns out that I just started a project in RoR and my project does not contain the file secrets.yml, I would like to know how to generate one or make the original appear that should be hidden somewhere.     
asked by 18.08.2018 / 16:31
1
answer

Ruby on Rails 5 bower: install

I'm super new at Rails and I'm trying to learn as much as I can. When trying to do bower: install I have the following error.    NoMethodError: undefined method 'assets' for # I am trying to follow the next course and in the installa...
asked by 23.08.2018 / 20:02
1
answer

How to change the project that comes by default in the image One Click app for Ruby On Rails DigitalOcean

I need to deploy my own application on a DigitalOcean server, I have a droplet with the One Click app image for Ruby On Rails and it has an empty running application called rails_project by default. I need to know how to change the configurat...
asked by 12.07.2018 / 06:23
2
answers

Generate image url

I'm uploading images to my rails project (I'm not using gems), I upload them to public/temp up to here all right, the problem I have is that I need to generate a public url of the image so that the photo can be accessed for another servic...
asked by 30.07.2018 / 18:48
1
answer

ActionController :: UrlGenerationError with ActionMailer when trying to display a link

How about ?, Well I tell you, I've been working with Rails and ActiveAdmin for a while, I have not had any major problems, I'm not an expert or anything, but there is a lot of help on the Internet that can help solve many doubts. In my applic...
asked by 23.05.2018 / 16:34