Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonytonyjan/tj_rails_extension


https://github.com/tonytonyjan/tj_rails_extension

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Usage

Append to `Gemfile`:

gem "tj_rails_extension", github: 'tonytonyjan/tj_rails_extension'

And then:

rake tj:install:gems
bundle install
rake tj:install

application.js

...
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= tj_rails_extension
//= require_tree .
$(document).ready(UTIL.init);
...

application.css

...
*= require bootstrap
*= require_self
*= require bootstrap-responsive
*= require_tree .
...

application.html.erb

...

<%= notice_message %>
<%= page_header @header if @header %>
<%= yield %>

...

application_controller.rb

class ApplicationController < ActionController::Base
...
default_rescue
...
end

posts.js.coffee

APP.posts =
show: () ->
this.highlight()
new: () ->
this.form()
create: () ->
this.form()
edit: () ->
this.form()
update: () ->
this.form()