Questions tagged as 'ruby'

3
answers

Rails uninstalls itself

I am trying to learn Ruby on Rails and it has cost me enough to start with configuration issues. Yesterday I was following a tutorial, so I installed Ruby and then rails with gem install rails , and everything worked fine. But today...
asked by 16.12.2016 / 14:40
2
answers

problem with the ruby on rails server

hello friends I have ruby and ruby on rails installed and it works correctly but the server does not work with the "rails server" command but with "gem server" error message: root@sommer0123-AO532h:/home/sommer0123/Escritorio/blogruby/...
asked by 15.02.2017 / 03:26
1
answer

duplicate records of a query

I'm making a query to find all those products that are not related to a table called Stock where the field Ruta within the table Stock is different from id I'm going through the url, that means searching for all those...
asked by 18.11.2016 / 16:27
1
answer

I can not create a project in rails

I installed rails from link After installing it, I wanted to create a project with the command C:\Sites>rails new blog But when executing the command, the answer is as follows:    The route can not be found. Can you give me a...
asked by 17.10.2016 / 15:55
3
answers

Ruby on Rails login view

I'm new to rails and I have a problem with the login view, I tried to put a menu at the top of the page with the CSS attributes but when I run the server rails the menu appears in the middle of the page and Do not go up as I want. I hope it is n...
asked by 22.11.2016 / 20:36
3
answers

What gem can I use to validate users on my website?

What gems can I use to validate users on my website? Or is it possible with pure ruby? With php or jsp I used javascript, but in ruby I do not know if you can     
asked by 08.10.2016 / 15:45
1
answer

Create data of a form when saving those of another form

I need that when sending the data of a form, automatically send the data of another form creating a record in another table in the database, it is worth noting that both records do not have a direct relationship. these would be the two forms...
asked by 05.11.2016 / 05:48
1
answer

Customize input of type time simple_form

I need you to have this range: 8:00 AM - 8:00 PM = f.input :start , :ampm => true, :minute_step => 60, :prompt => { :Hora => "Hour", :minutos => false }, :required => false     
asked by 17.09.2016 / 03:12
1
answer

How to use the Number_Field in Ruby?

I have a problem with this type of field that is inside my form and it is that when trying to save that value inside my bd, I automatically assign a zero to this field, so it does not register the value that I want . This is the code of my fo...
asked by 03.08.2016 / 04:27
1
answer

How to check if Ruby on rails has caching activated?

I'm doing a procedure to store the cache in a query to the database in rails, but when I try to test the functionality in the console it does not work for me. It does not save the record in the cache. I'm using Rails 5.2.2 ruby 2.5.1p57...
asked by 04.01.2019 / 19:38