This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Category.all.each do |category| | |
| %li | |
| = link_to(category.title, category_path(category)) | |
| - unless category.subcategories.blank? | |
| %ul | |
| - category.subcategories.each do |subcat| | |
| %li | |
| = link_to(subcat.title, category_subcategory_posts_path(category, subcat)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ["foo","bar","biz"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget ullamcorper nibh, id pretium lacus. Vivamus porta, risus tincidunt efficitur faucibus, enim urna malesuada lectus, id luctus turpis lorem quis neque. Cras nibh erat, ornare ut magna et, consectetur tempor massa. Phasellus ut congue ligula, feugiat pretium purus. Pellentesque pretium iaculis rhoncus. Praesent convallis urna non egestas pellentesque. Nunc id erat vel augue hendrerit volutpat. Nullam eget nisl vel nulla pharetra vestibulum nec sit amet ipsum. Nulla lacinia varius quam, ac aliquet velit auctor sit amet. Proin et malesuada metus. Donec quis odio congue, iaculis magna sed, auctor nibh. Sed rutrum, sem at interdum tristique, ante velit venenatis dui, ac porttitor lectus diam nec diam. Donec tortor elit, hendrerit commodo porttitor sed, hendrerit id arcu. Aenean tincidunt, orci ac feugiat sollicitudin, leo quam lobortis augue, eu faucibus ante urna nec lacus. | |
| Phasellus gravida leo non ornare lobortis. | |
| Aliquam vel commodo lacus. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def generate_location(io, context = {}) | |
| name = super # the default unique identifier | |
| @new_location = "" | |
| if io.is_a?(File) | |
| ioo = io.to_path | |
| initial_location = io.to_path | |
| @new_location = ioo.match(/(.*\/).*/)[1] | |
| else | |
| binding.pry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class GraphicUploader < Shrine | |
| include ImageProcessing::MiniMagick | |
| plugin :activerecord | |
| plugin :cached_attachment_data # for retaining the cached file across form redisplays | |
| plugin :restore_cached_data # re-extract metadata when attaching a cached file | |
| plugin :determine_mime_type | |
| plugin :remove_attachment | |
| def generate_location(io, context = {}) | |
| name = super # the default unique identifier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %section.page-title.page-title-4.bg-secondary | |
| .container | |
| .row | |
| .col-md-6 | |
| %h3.uppercase.mb0.bold.number | |
| = area_name | |
| .col-md-6.text-right | |
| %ol.breadcrumb.breadcrumb-2 | |
| %li | |
| = link_to "Back" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .background-image-holder.fadeIn{:style => "transform: translate3d(0px, 469.5px, 0px); background: image-url(\"app/assets/images/cover11.jpg\");"} | |
| %img.background-image{:alt => "Background Image", :src => "app/assets/images/cover11.jpg", :style => "display: none;"}/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 5742 | Healing Hatha Yoga - Cathy Sullivan | 1 | 7849 | NULL | NULL | 2018-04-18 19:51:57 | 2018-04-18 19:51:58 | 150 | 0 | 1 | l3vP9vd_Bcs | 11763 | 5 | 17 | 1 | 0 | 3168 | 0 | everyone | 0 |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 349 | Quick Tips: Fats | Quick Tips: Fats | 1 | 1 | NULL | NULL | 2014-11-14 21:11:54 | 2014-11-14 21:11:54 | 35 | 1 | iframely | 04bAk19BvSw | 1600 | 5 | 27 | 1 | 0 | 58 | 0 | everyone | 0 |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 343 | KidFit | Aaron | 20 Min | 1 | 1 | NULL | NULL | 2014-11-12 21:27:51 | 2016-11-12 21:27:51 | 41 | 0 | 1 | Rxave7XF6lc | 1582 | 5 | 26 | 1 | 0 | 1201 | 0 | everyone | 0 |
|---|