- // app/views/something/create.js.erb
- // ... 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:
- <%= @some_object.whatever %>