Public Gists by lightcap

Gravatar
Tue Oct 20 10:15:07 -0700 2009
1
2
3
<%= javascript_tag "var auth_token = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
 
results in:
Gravatar
Mon Oct 19 17:49:14 -0700 2009
1
2
3
## markup
<div>
  <ul>
Gravatar
Sun Mar 22 15:45:34 -0700 2009
1
2
3
# Examples of Nesting Associated Attributes
# This is a look at the various ways to set associated attributes through
# nested parameters. For example, let's say Project has_many :tasks and
Gravatar
Wed Feb 25 17:19:46 -0800 2009
1
2
chinook: mattkern$ git reset --hard HEAD
HEAD is now at 65d77f3 ...and back to regularly scheduled programming.
Gravatar
Fri Feb 20 17:50:53 -0800 2009
1
2
# deploy to staging from your current topic branch, with ease
set :branch, "origin/#{`git branch`.scan(/^\* (\S+)/)}"