This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tinyMCE.init | |
| setup: ( ed ) -> | |
| ed.on 'PreInit', (e) -> | |
| doc = ed.getDoc() | |
| # Create the script we will add to the header asynchronously | |
| jscript = "(function() {\n | |
| var config = {\n | |
| kitId: '######'\n | |
| };\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parent { | |
| position: relative; | |
| } | |
| el { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| -webkit-transform: translate(-50%, -50%); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.assets.precompile += %w(style.css) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $node.closest( $target ).length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function ( $ ) { | |
| $.fn.offon = function( name, func ) { | |
| this.off( name ).on( name, func ); | |
| return this; | |
| } | |
| }(jQuery)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @media only screen and (min-width:768px) { | |
| /* Styles */ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| request.original_url | |
| # In a form: | |
| <%= form_tag( request.original_url ) do %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Resourceable | |
| protected | |
| def create_response( saved, resource, format, name, url = false ) | |
| if saved | |
| format.html { redirect_to url ? url : resource, notice: name + ' was successfully created.' } | |
| format.json { render action: 'show', status: :created, location: resource } | |
| else | |
| render_error( format, 'new' ) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Category | |
| # GET /categories/new | |
| def new | |
| @category = Category.new | |
| end | |
| # GET /categories/1/edit | |
| def edit | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% if @category.errors.any? %> | |
| <div class="alert alert-block alert-error"> | |
| <h4><%= pluralize( @category.errors.count, 'error' ) %> prohibited this Category from being saved:</h4> | |
| <ul> | |
| <% @category.errors.full_messages.each do |msg| %> | |
| <li><%= msg %></li> | |
| <% end %> | |
| </ul> | |
| </div> |
OlderNewer