What do you want to save?
Add Code snippet
New code examples in category Ruby
-
Heyitsmyusername 2021-09-26 14:53:04
Ruby difference between for and .each
# They are both similar in function, however the for loop will retain a variable. # FOR Example: nums = [1,2,3] for n in nums puts n end => 1 2 3 # If you ask what is n, n outputs the last assignment from the function. n => 3 # EACH Example: nu... Add solution -
-
Ira 2021-09-25 23:51:03
text_field_tag transfer params rails
<%= form_tag create_invitation_path, method: :post do %> <%= text_field_tag "Email", params[:emails] %> # register input in params <input type="submit" value="Envoyer une invitation"> <% end %> Add solution -
Arcsn 2021-09-25 23:41:01
logback grails log in different files
//grails-app/confg/logback.groovy import grails.util.BuildSettings import grails.util.Environment import ch.qos.logback.core.rolling.RollingFileAppender import ch.qos.logback.core.rolling.TimeBasedRollingPolicy import ch.qos.logback.core.util.FileSize de... Add solution
Best helpers
SOUMEN
+5
Huggy Buggy
+5
Joyo
+5
ImMathan
+5
Anugram
+5
Vy32
+5
Daniel Cook
+5
Florian Huit
+5
Csandreas1
+5
B_archer
+5
Horse
+5
Kd88
+5
Shahruz Raad
+5
Mick Daw
+5
Czlsws
+5