Skip to content

some javascript juctions and rails helpers I usually add to my projects

License

Notifications You must be signed in to change notification settings

rikvanmechelen/js-fun-on-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

      _  _____    __                                       _ _     
     | |/ ____|  / _|                                     (_) |    
     | | (___   | |_ _   _ _ __     ___  _ __    _ __ __ _ _| |___ 
 _   | |\___ \  |  _| | | | '_ \   / _ \| '_ \  | '__/ _` | | / __|
| |__| |____) | | | | |_| | | | | | (_) | | | | | | | (_| | | \__ \
 \____/|_____/  |_|  \__,_|_| |_|  \___/|_| |_| |_|  \__,_|_|_|___/
                                                                   
	A simple gem with my common js functions and helpers, 
	including add and remove field from railscasts #197
	
Features
--------
	- Provides an install generator to include the javascript
	- Provides you with some helpers i commonly use with the javascripts
	
	
Usage
-----

	$> gem 'js_fun_on_rails' (NOT YET)
	$> bundle install
	$> rails generate js_fun_on_rails:install
	
	
Help
----
This is just some code i used in nearly every project, you are more then welcome to give suggestions, or add some code yourself!


Js functions
------------
	- remove_fields(link, class, speed) 
	- add_fields(link, association, content, speed)
	- add_field(link, content) 
	- show_fields(ids, speed) 
	- hide_fields_by_ids(ids, speed)
	- remove_fields_by_ids(ids, speed)
	- remove_content_by_id(id, speed)
	- show_content_by_id(id, speed) 

About

some javascript juctions and rails helpers I usually add to my projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages