ruby tag

542 questions


1 answers
98 views
0
This is a question regarding Begin-Rescue-Ensure handling exception to Ruby

Is ensure in Ruby = finally the same in C#?I don't know exactly when sense will run, so I don't know when to close the file.file = File.open(myFile.txt, w)begin file << #{content} \nrescue #hand...

2 years ago

1 answers
113 views
0
What is map(&:name) like?

I saw this code in RailsCast and I don't know what map(&:name) is like (&:name).def tag_names @tag_names || tags.map(&:name).join(' ')end


1 answers
56 views
0
File IO from Ruby

You want to read the file from the DB and save it in the .txt file.Please tell me how to type in the file in Ruby

2 years ago

2 answers
38 views
0
Problems when applying materialization when creating web pages in rubyonrails

<title>Sns</title><%= csrf_meta_tags %><link href=https://fonts.googleapis.com/icon?family=Material+Icons rel=stylesheet><%= stylesheet_link_tag 'application', media: 'all',...


1 answers
32 views
0
Why does "WARN could not detect content-length of response body" appear?

That warning has been in the log since I upgraded Rails WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = trueWhat does this mean a...

2 years ago

1 answers
32 views
0
Flag specifying version in rubygem

When writing gem in the command line, what flag should I use to specify a specific version?

2 years ago

1 answers
49 views
0
I want to get a tuple with a specific string from rails db.

Hello, everyoneI want to get a tuple with a specific string from the rails. When I do the sql door, LIKE '% specific string%' could be searched.Rails has several functions that use dbI'd like to know ...


1 answers
39 views
0
Problems related to jquery when applying materialization in rubyonrails

From the first image,Why is that sign coming out? I don't think it recognizes the code, so please tell me how to solve it ㅜ


1 answers
121 views
0
This is a web crawling question using Ruby-on-Rails.

I'm studying Ruby on Rails. I'm trying to scratch four titles of Naver news articles, but it didn't work out as I thought, so I'm posting a question.In the code I made, if you turn 0002713773, 0002713...


1 answers
31 views
0
Difference between Large Molecular Variables and $, $$ Variables in Ruby on Rails

Is there a difference between a large molecular variable and a $,$ variable in Ruby on Rails?I'm trying to save and write the values I'm going to use globally for the file under rails' config/initials...

2 years ago
« - 51 - »

© 2024 OneMinuteCode. All rights reserved.