Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // app/views/something/create.js.erb
  2. // ... this file is returned to the browser and eval'd. Put whatever code you want in here. Because it is an ERB template you can just access whatever instance variables you declared in the create action:
  3.  
  4. <%= @some_object.whatever %>