Sha256: 78e95c222272afaeb16777da0c6817bea1fb4056e55429b19664eab5b1371e73
Contents?: true
Size: 446 Bytes
Versions: 18
Compression:
Stored size: 446 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery def index end def with_assignments object = Object.new def object.as_json options = {} {:contents => 'json representation'} end @number_var = 1234 @string_var = 'hello' @array_var = [1,'a'] @hash_var = {:a => 1, :b => 2} @object_var = object render :type => :js, :locals => { :local_var => 'i am local' } end end
Version data entries
18 entries across 18 versions & 1 rubygems