Questions tagged [Ruby on Rails] (2693)

0
answer

How to get a list of people who made a repost in the social network?

Good day! Need to get a list of users who did repost the post in the social networks Vkontakte and Odnoklassniki. Of found wall.getReposts but it is only for your soobstvenno posts. Thank you for your help.
lorenz asked April 19th 20 at 12:19
1
answer

Why Rails Live returns data again?

Created a new Rails app with the one live controller class MyController < ActionController::Base include ActionController::Live def stream response.headers['Content-Type'] = 'text/event-stream' 10.times { response.stream.write "hello world\n" sleep 1 } ensure response.stream.close end end The answer comes at once...
Elias.Turner38 asked April 18th 20 at 12:58
1
answer

How to configure the rights on hosting the Apache (Passenger) + Ruby on Rails (Redmine)?

Good day to all! Set up REDMINE on a VPS according to the manual - https://www.dmosk.ru/miniinstruktions.php?mini=red... It works, but to edit files via ssh (winscp) have root access (sudo from console) to set chmod 0775 All folders and files with which he tried to work initially have 0755, owner:www-data group:www-data Vi...
Justus.Emard asked April 18th 20 at 12:11
2
answers

What is the Rakefile in Rails?

What is the Rakefile in Ruby on Rails?
hazel28 asked April 16th 20 at 11:00
2
answers

What is the assets folder in Rails?

In the directory "app" there is a folder "assets" - what is it?
Bori asked April 16th 20 at 11:00
2
answers

What /channels in Ruby on Rails?

In the directory "app" in Rails there is a folder "channels" - what is its purpose? What is it?
jeromy_Zulauf47 asked April 16th 20 at 10:50
1
answer

What is the application_controller?

What is this file? For what it is in Rails?
oleta_Reynolds asked April 16th 20 at 10:48
1
answer

Can I use websocket in Rails without users?

Good time of day. Write a clone of trello on a bunch of React + Rails. There is a need to use websockets for updates in real time. In many examples of the websocket used by the users. Ie, no registration and authorization, no users. There are only 3 models - Board, List, Card, as I understand to use the websocket just for ...
Aiyana_Effertz asked April 16th 20 at 10:45
1
answer

How to copy object in this case?

Type of object to copyobj = { id: 1 models: [ { id: 1, parent_id: nil }, { id: 2, parent_id: 1 }, { id: 3, parent_id: 1 }, { id: 4, parent_id: nil }, { id: 5, parent_id: 4 }, { id: 6, parent_id: 4 } ] } The object exists of this type. praent_id is the ID of the same model which is nil. When you copy it using th...
Danial_Treutel96 asked April 16th 20 at 10:45
0
answer

Like includes choose the conditions of the sample?

I have a list of departments in the departments table using employees_department added employees. I need to select all the departments that operate within the specified date and employees who are involved in these departments on a given date. Departments can choose to succeed, but the staff just added all indiscriminately...
daryl71 asked April 16th 20 at 10:40