add a translate box at the bottom of page
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
MIT-LICENSE
README.md
Rakefile
VERSION
acts_as_translatebox.gemspec
init.rb
install.rb
translate_demo.png
uninstall.rb

README.md

ActsAsTranslatebox

Add a translate box at the page bottom for your rails project.

Author: Qichunren

How to use it?

 gem install acts_as_translatebox

In Gemfile

 gem "acts_as_translatebox" 

Then just use

  acts_as_translatebox

in your controller.

Example

    class PostsController < ApplicationController

    	acts_as_translatebox :only => ["index","show"]

      def index
      	@posts = Post.latest(5)
      end

      def new
      	@post = Post.new
      end

      def show
      	@post = Post.find(params[:id])
      end

    end

Demo

Copyright (c) 2009 [name of plugin creator], released under the MIT license