ruby tag

542 questions


3 answers
45 views
0
I want to return nil when Ruby makes the string numeric.

When converting a string to a numeric value in ruby, I think you should use 100.to_i.If 100a.to_i is not a number, convert it to that point and Or, I think aa.to_i is the specification to return 0I wo...

2 years ago

1 answers
109 views
0
Configuring Unicorn+nginx to Run Multiple Applications

I am publishing a site created by sinatra on unicorn+nginx, and I would like to add another site, but I don't know how to do it, so please let me know.Currently, it is as follows.(Excerpts only releva...

2 years ago

5 answers
51 views
0
I want to make 26 alphabetic numbers with Ruby.

What should I do if I want Ruby to make only 26 alphabetic characters?integer.to_s(26)It will be a combination of numbers and alphabets.

2 years ago

3 answers
46 views
0
How to Return a Message from the Controller Without Changing the Display of the Rails Screen

What should I do if Rails returns a message from the controller without changing the display?We have created a screen with the following specifications:Display a list of itemsSelect the radio button i...

2 years ago

3 answers
44 views
0
How to Return a Message from the Controller Without Changing the Display of the Rails Screen

What should I do if Rails returns a message from the controller without changing the display?We have created a screen with the following specifications:Display a list of itemsSelect the radio button i...

2 years ago

5 answers
48 views
0
I want to make 26 alphabetic numbers with Ruby.

What should I do if I want Ruby to make only 26 alphabetic characters?integer.to_s(26)It will be a combination of numbers and alphabets.

2 years ago

1 answers
81 views
0
config.js in redactor-rails is not reflected

I want to adjust the min-height of the reductor editor in config.js (I want to have some height in the text area), but it works in a local environment, but when deployed to heroku, the configuration i...


1 answers
81 views
0
config.js in redactor-rails is not reflected

I want to adjust the min-height of the reductor editor in config.js (I want to have some height in the text area), but it works in a local environment, but when deployed to heroku, the configuration i...


1 answers
89 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

2 answers
54 views
0
How to Create Ruby Chain Method Functions

Please tell me how to create a function that can use the chain method in ruby.string.hoge()I want to make hogedef hoge(){}

2 years ago
« - 13 - »

© 2024 OneMinuteCode. All rights reserved.