Create Sample
All Samples (7)
-
Standard ruby on rails controller
This is an example Ruby on Rails controller. Noticed the comments before each controller. This gives you an example route for each of the method. This means, for example, i...code by fourcolors
-
Proper PHP include statements
You keep using the same HMTL over and over again to create the same header information on each page, and then one day you realize there must be an easier way. You don't hav...code by meistercobbman
-
jQuery plugin with dependencies
This is an example of how to create your own jQuery plugin. Some things to notice. At the top, I'm checking to make sure jQuery exists, after all my plugin depends on jQuer...code by fourcolors
-
Changing form builders error messages and html in rails
If you want the error message class to change when validation errors show up in rails you can override them. Checkout out http://guides.rubyonrails.org/active_record_valida...code by fourcolors
-
Add data attribute to rails link_to helper
Lets say you are using something like Twitter Bootstrap's 'modal' plugin that will drop down a menu when you click a link. If you read their docs: http://twitter.github.com...code by fourcolors
-
Standard Javascript OO Design
code by jakiestfu
-
How to remove Homebrew from your mac
code by fourcolors
Site Stats
- Total samples
- 7
- Total users
- 6
