Profile
Achievement
smoothdzion's Recent SnippetsTagged rails
- All /
« Prev 1 Next »
Regular menu item adding current class if current url equal menu item destination.
1
932
posted 14 years ago by smoothdzion
I needed to make menu items that kept the current class based on the controller being accessed.
1
710
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
766
posted 14 years ago by smoothdzion
The code to find all objects from a model and use them as select options.
1
929
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
690
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
660
posted 14 years ago by smoothdzion