Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonytonyjan/tj_rails_extension
https://github.com/tonytonyjan/tj_rails_extension
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonytonyjan/tj_rails_extension
- Owner: tonytonyjan
- License: mit
- Created: 2012-11-04T18:37:23.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-07T08:37:21.000Z (about 12 years ago)
- Last Synced: 2024-04-09T21:30:16.865Z (9 months ago)
- Language: Ruby
- Size: 313 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
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:installapplication.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
...
endposts.js.coffee
APP.posts =
show: () ->
this.highlight()
new: () ->
this.form()
create: () ->
this.form()
edit: () ->
this.form()
update: () ->
this.form()