ruby tag

542 questions


1 answers
70 views
0
warning —already initialized constant APP_PATH

The rails suddenly stopped working...This is the log displayed.>bin/rails:6:warning:already initialized constant APP_PATH>/Users/Sean/Desktop/Renascence/bin/rails:6:warning:previous>definitio...


1 answers
62 views
0
When I try to apply css with rails, I get Rack app error handling request.

I want to apply css to rails, but it doesn'tapplication.html.erb<title>UberEvaluation</title> <%=csrf_meta_tags%> <%=csp_meta_tag%> <%=stylesheet_link_tag 'application', med...

2 years ago

1 answers
76 views
0
I want to nest elements into the rails link_to.

<%=link_to link, {:controller=>:hoge_controller,:action=>:hoge_action}, class: hoge_class%>↓<%=link_to{:controller=>:hoge_controller,:action=>:hoge_action}, class:hoge_class do%&g...

2 years ago

1 answers
109 views
0
Even if I write the code on rails7,scss, the background-image is not displayed.

What do you want to doI'm recreating the app I made with rails6 with rails7.Among them, I would like to display the background-image.what someone didI wrote the code exactly as it worked in rails6.I c...


2 answers
30 views
0
Problems Using Array Instance Methods in Array Subclasses

Below is a sample code that uses the Array instance method for the instance of the class that inherited the Array.class MyArray<Arrayendm=MyArray.newn = MyArray.newadded=m+nputsm.class#MyArrayputsn...

2 years ago

1 answers
68 views
0
I want the color of the header to change depending on the page.

What do you want to doI want to change the color of the letter in the header when I move the page (this color on page A).Page B looks like this color.)Current StateI have written the header using the ...


3 answers
35 views
0
Calculated amount of ruby select, map, etc.

How many loops will occur when ruby repeatedly calls an array, select or map such as Hash?For example, in the code below, (1..100) .select { | val | val %2 == 0} .map {|val|val.to_s} US>joinDo I have ...

2 years ago

2 answers
37 views
0
I want to specify nil when specifying Rails4where multiple conditions!

.where((start_at=?),(start_at>?), nil, Time.now)When specifying multiple conditions such as , I would like to specify nil for the value, but I am stuttering because it does not work.In such cases, ...

2 years ago

1 answers
39 views
0
I want to run the ruby script that I made on windows on ruby container

What do you want to doCreate a ruby container on windows with docker and run the ruby script you edited on windows.TriedCreate a ruby container by defining the following ($docker-compose up-d)version:...

2 years ago

1 answers
75 views
0
When I try to save data with ruby and Google spreadsheet gem, it becomes An invalid XML character (Unicode:0x14) was found and cannot be saved.

Array data is as follows: parent=['a', 'b', ['c', 'd']]I want to save this to a spreadsheet using google_drive's gem with the following code, but I can't...@worksheet=google_drive_session.spreadsheet_...

2 years ago
« - 29 - »

© 2024 OneMinuteCode. All rights reserved.