Rails 4 Notes

From Wiki
Revision as of 22:29, 23 July 2014 by Scott (talk | contribs) (Created page with "== Lessons that I've learned before == * <code><%= form_for ... %></code> instead of <code><% form_for ... %></code> * Chrome won't let you POST a form to local test instance...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lessons that I've learned before

  • <%= form_for ... %> instead of <% form_for ... %>
  • Chrome won't let you POST a form to local test instance, only GET. Firefox is OK.

New lessons

Strong parameters

http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html

jQuery

rails generate jquery:install

asset pipeline

add this to get javascript:

<%= javascript_include_tag "application" %>