ruby tag

542 questions


1 answers
92 views
0
I want to create a helper for use in sinatra's Template.

Image #helperview_helper do hoge(fuga)do US>#{fuga} endend#viewhoge('Bob') #This is BobI would like to use it like this, but what is the best way?I don't know how to make it in the first place.Please...

2 years ago

3 answers
96 views
0
Is it dangerous to allow the posting of iframe tags on the article posting site?

I would like to allow the iframe tag to be able to paste videos from video sites such as YouTube on a site where users can post articles, but is it dangerous from a security perspective?If it's danger...

2 years ago

3 answers
73 views
0
Is it dangerous to allow the posting of iframe tags on the article posting site?

I would like to allow the iframe tag to be able to paste videos from video sites such as YouTube on a site where users can post articles, but is it dangerous from a security perspective?If it's danger...

2 years ago

3 answers
93 views
0
I want Ruby to identify JSON regardless of the order of the elements.

I would like Ruby to determine that JSON data is identical if it contains the same elements (in the case of associative arrays, if the key and value combinations are the same).I am thinking of the fol...

2 years ago

3 answers
63 views
0
I want Ruby to identify JSON regardless of the order of the elements.

I would like Ruby to determine that JSON data is identical if it contains the same elements (in the case of associative arrays, if the key and value combinations are the same).I am thinking of the fol...

2 years ago

1 answers
42 views
0
Google API user authentication with omniauth and device fails to find a client ID

Prerequisites/What you want to achieveI am producing a Twitter-type web service with rails.I would like to be able to Google authentication with device and omniauth, but GoogleIf the client ID is not ...

2 years ago

2 answers
41 views
0
What happens if I write this Ruby code in C#?

class HogeClass # class variable = array type @@class_variable=[] # Instance variable = associative array type @instance_variable={} # constructor def initialize (name) @name = name end # instance met...

2 years ago

2 answers
83 views
0
I want to be able to load the gem needed to run when I run an external Ruby script using Open3 or Daemons.

I'm stuck, so please tell me.Rais, Ruby is writing for the first time, so you may be misguided.I wanted to run the capture3 method of Open3 from Rails to launch the daemon, but it turned out to be can...


1 answers
41 views
0
The ActiveModel::UnknownAttributeError is not resolved in Rails.

Prerequisites/What you want to achieveI'm developing an application. While implementing and adjusting the notification function, the above ActiveModel::UnknownAttributeError appeared. I want to solve ...

2 years ago

2 answers
38 views
0
I want to change the program so that I don't use to_proc with the select method.

For samples that do not write blocks often, specify & symbols for the arguments of the select method and  (1..10).select(&:even?)Samples written like this are common, but How do you write cond...

2 years ago
« - 14 - »

© 2024 OneMinuteCode. All rights reserved.