smoothdzion


Member since 11/04/2009

Name: Brandon Buttars

smoothdzion

Location: Spanish Fork, UT

Website: http://brandonbuttars.com

6 snippets

2664 profile views

5 Comment(s) Posted

View their favorites

their Tags


Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

smoothdzion's Recent Rails Snippets



« Prev 1 Next »
Regular menu item adding current class if current url equal menu item destination.
1 714 posted 14 years ago by smoothdzion
I needed to make menu items that kept the current class based on the controller being accessed.
1 519 posted 14 years ago by smoothdzion
I needed to copy the value of one field to a couple of others in case users decided to forget to fill them out. Using jQuery and added it to a helper because I was using in multiple places. Created variables to make it more readable.
1 585 posted 14 years ago by smoothdzion
The code to find all objects from a model and use them as select options.
1 731 posted 14 years ago by smoothdzion
For separating a list of categories with a comma that are linked. There may be a better way. Leave a comment if you have a better way. This was the first way I found that worked. This code increments the count 1 at a time. It applies the incre...
1 511 posted 14 years ago by smoothdzion
Used to create checkboxes to select multiple categories for a post or any other type of applicable situation.
1 492 posted 14 years ago by smoothdzion
« Prev 1 Next »