Sha256: 79b794c146f56b4b31916d167a4fcf5d9c0fb7770eda81b302393f02f7623d64
Contents?: true
Size: 892 Bytes
Versions: 10
Compression:
Stored size: 892 Bytes
Contents
# This migration comes from kuztuscms (originally 20120311173954) class CreateKuztuscmsLayouts < ActiveRecord::Migration def change create_table :kuztuscms_layouts do |t| t.text :body t.string :path t.string :format t.string :locale t.string :handler t.boolean :partial, :default => false t.timestamps end body = <<EOF <!DOCTYPE html> <html> <head> <title><%= @page.title %></title> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> </head> <body> <p class=notice><%= notice %></p> <p class=alert><%= alert %></p> <%= yield %> </body> </html> EOF Kuztuscms::Layout.create( :body => body, :path => 'default', :format => 'html', :locale => 'en', :handler => 'erb', :partial => false ) end end
Version data entries
10 entries across 10 versions & 1 rubygems