Questions tagged [Ruby] (1569)

0
answer

I can't start the program?

loyce.Hauck asked April 1st 20 at 16:46
1
answer

I can't start the program?

Norbert asked April 1st 20 at 16:27
4
answers

In Ruby on Rails to create a Model data source in the form of an external RESTful API?

Stupid question, probably, but still. The model in RoR is a description of an entity in the database (as I understand it). In the model file, you can do your own methods that will do direct DB queries and return the data collection. In my project, I data mined not from DB, but from an external RESTful API. Is it possible (w...
darien.Abshire asked April 1st 20 at 16:10
3
answers

How to merge 2 into one hash in the array?

There is an array with 2 hashes, sucharr = [{:name => "Tom", :surname => "John", :age => "100"}, {:name => "Jack", :surname => "Hill", :age => "20"} ] We need him to bearr = [{:name => "Tom", :surname => "John", :age => "100", :name => "Jack", :surname => "Hill", :age => "20"} ] or, even ...
Raymundo_Wi asked March 31st 20 at 19:54
1
answer

How to compile sass/scss With Android device(termux)?

Good night.Is it possible?Because I would like to work with webpack/gulp and I'd like to try sass and things like that.
gisselle_Sanford24 asked March 31st 20 at 14:23
2
answers

How much stronger in Ruby draft on functional programming?

Browsing through jobs is often seen in the technology along with a functional language Ruby. For example, there are ligaments: ruby-on-rails, ruby, erlang, elixir or ruby, javascript, ruby-on-rails, elm, elixir or ruby-on-rails, reactjs, varnish, haskell, elasticsearch. How strong is Ruby the emphasis on functional programm...
Annetta13 asked March 30th 20 at 01:19
3
answers

How to reduce the number of function arguments?

Code:def my_function(one, two, three, four) # To Do Something end The problem in this functions is that the number of arguments can increase and it turns out it is not nice to add almost as many arguments of the same type. Tell me some sort of versatile and beautiful way to do it.
Wallace.Marks asked March 29th 20 at 23:48
1
answer

How to add elements from a hash to an array?

By means of a clean ruby from a hash of this formrow = {lk: {id: 181, name: "Client_name"}, lpp: {id: 123, name: "Client_name2"}} To array idшников, what would the result be like this [181,123] The length of the hash may be different, and may even be empty, in this case should return an empty array.
julius3 asked March 29th 20 at 21:44
2
answers

How to pull the year into a variable from a full date?

I have a database with information comes the date in this form 2019-07-10 00:18:50 +0300,as with the only pure Ruby save in variable only the year? Do I have to do this, you need regular expressions?
Loyal_Wolff asked March 29th 20 at 21:32
3
answers

Is it possible to use Ruby instead of JS for frontend development?

I like the Ruby syntax and many of its chips. Can I through Webassembly or Webpack-plugin to transpalet and use it on frontend, in conjunction with Vue for example? The front end on the Vue.rb? And that sounds chipawo.UPD: I Searched "vue.rb", and I found this great project, but I don't want rails. There Vue is embedded in ...
jordan.Hilpert asked March 29th 20 at 21:24