Skip to content

Instantly share code, notes, and snippets.

View raaynaldo's full-sized avatar
:octocat:
Learning

Raynaldo Sutisna raaynaldo

:octocat:
Learning
View GitHub Profile
@raaynaldo
raaynaldo / rails_cheatsheet.md
Last active October 31, 2020 22:30
All about rails

form_for

params.require(:classname).permit(:field1, :field2)
<%= form_for @school_class do |f| %>
    <%= f.text_field :title %>
 &lt;%= f.number_field :room_number %&gt;