Sha256: bcb1367d637c3301e166becf16ca8172ba402440a073e560150bdff77d4801a8
Contents?: true
Size: 446 Bytes
Versions: 12
Compression:
Stored size: 446 Bytes
Contents
class FormsController < ApplicationController create_action :static_fields create_action :javascript_fields create_action :get_content_from_ajax def ajax_fields @url_prefix = '' end def ajax_fields_with_record @url_prefix = "/#{params[:id]}" render action: :ajax_fields end private def without_record @record = Record.new end def with_record @record = Record.find params[:id] end end
Version data entries
12 entries across 12 versions & 1 rubygems