What do you want to save?
Add Code snippet
New code examples in category Ruby
-
Hanner 2021-09-17 04:06:03
for loop ruby
for i in 0..2 do print(i) end # => 0 # => 1 # => 2 Add solution -
Kagetsuki 2021-09-17 00:02:03
rails tel_form_tag
<%= text_area_tag(:message, "Hi, nice site", size: "24x6") %> <%= password_field_tag(:password) %> <%= hidden_field_tag(:parent_id, "5") %> <%= search_field(:user, :name) %> <%= telephone_field(:use... Add solution -
John Rees 2021-09-16 05:00:02
ruby does object exist in array
# Element exists in array object_exists = arr.any? { |elem| elem == desired_value } # Element with property exists in array object_exists = arr.any? { |obj| obj.prop == desired_value } # Type exists in array object_exists = arr.any?(Integer) # Element ... Add solution
Best helpers
Nick Vaccaro
+5
Ivan T.
+5
Bianco
+5
Nikola
+5
Graffito
+5
Mari Yoongi
+5
Tyr
+5
Christophrrb
+5
Vary
+5
Mushi.f
+5
Euan
+5
Ryan Friend
+5
Millemila
+5
Soumee
+5
Gftern
+5
Davesmiths
+5
Vocaro
+5
Vbence
+5
Del Findley
+5