Questions tagged as 'ruby'

3
answers

Migrations are pending

First I put rails server in the console and when I put in the local browser Host: 3000 I get this message, how can I solve it?     
asked by 02.04.2017 / 03:00
2
answers

Error executing gem install rails

trying to install rails, after having installed ruby and rubygems, I try to execute the following command: sudo gem install rails which gives me the following error: checking for gzdopen() in -lz... no zlib is missing; necessary for build...
asked by 01.02.2017 / 21:41
1
answer

connect other users to the database?

with my group we are working rather learning to work with rails and postgresql, the project was uploaded to github, they downloaded it but when starting the server (rails s) it appears that they do not have user permission in the database ....
asked by 08.12.2016 / 17:13
1
answer

relations of various models in rails

Good morning, I have 3 models "Empleado", "grupo_familar" and "documentos_familiares". Employee has a one_to-many relationship with grupo_familar and grupo_familiar a one_to_many relationship with family_files. When wanting to collect employee d...
asked by 15.11.2016 / 15:47
1
answer

Create login to each model

I'm new to rails. The doubt is the next one. I have three models, client, vendor and users generated with devise. How can I assign a login to each vendor and client when creating a new one?     
asked by 01.11.2016 / 21:13
2
answers

How can I view the records of a database in Heroku?

After doing deploy to my application, how can I see the records of the BD% tables postgresql in Heroku ?     
asked by 17.01.2017 / 20:22
1
answer

Why do I get the error ActionController :: UrlGenerationError in Ruby when trying to create a new record?

I have a view where I will create series and I have a list, from the list I link to the aggregation of My series, but mark this error index.html.erb file <section class="capturar"> </section> <section class="detalles...
asked by 02.09.2016 / 06:55
3
answers

real-time validation in rails

Good morning, how could I validate a text_field in real time with js in rails? I have my validates in my model, and the validations and view of errors per field are made post submit, but how do I validate in the field itself without having to su...
asked by 04.11.2016 / 14:11
1
answer

Duplication of confirmation email when the callback is triggered from the User DEVISE model

I just finished following this guide link which worked perfectly, and activate the confirmable module so that when the admin approves the user's account after registration, a confirmation email will be sent after the parameter of the approved...
asked by 19.07.2016 / 03:27
1
answer

Airbnb scraping with nokogiri

I'm doing a small project and I need to get information from the Airbnb page (specifically this url " link "). The problem occurs in the second line of code: url = "https://www.airbnb.cl/s/Santiago--Chile?s_tag=EXop_G3D" html = open(url) R...
asked by 02.04.2016 / 04:04