Sha256: 249b68276951772a55102e18a38870526d60f351d5e58208f4f325b33910560b
Contents?: true
Size: 646 Bytes
Versions: 5
Compression:
Stored size: 646 Bytes
Contents
class Skyline::LinkSectionLinksController < Skyline::ApplicationController def new return unless request.xhr? render :update do |page| link = Skyline::LinkSectionLink.new link_guid = Guid.new fields_for params[:object_name], link do |sectionable_form| page.insert_html(:bottom, "section-#{params[:guid]}-links", :partial => "form", :locals => {:sectionable_form => sectionable_form, :link => link, :guid => params[:guid], :link_guid => link_guid}) page << "linkSectionLinksSortable#{params[:guid].to_s.gsub("-","")}.addItem('link_section_#{link_guid}');" end end end end
Version data entries
5 entries across 5 versions & 2 rubygems