Sha256: 6e9b19cc1df48ec076daa17cef9ec2ba4d3b98165ad9542a17f69748d9bc456a
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
class SongCell < Cell::ViewModel self.view_paths = ["test/dummy/app/cells"] include Cell::Slim def protect_against_forgery? false end def with_form_tag_and_content_tag render end def with_content_tag_and_content_tag render end def with_content_tag render end def with_block render end def with_capture render end def with_form_tag form_tag("/songs") + content_tag(:span) + "</form>" end def with_link_to render end def with_form_for_block render end def render_in_render render end private def cap "yay, #{with_output_buffer { yield } }" end def current_page capture do # FIXME: this escapes! #[link_to("1", "/1"), link_to("2", "/2")].join("+") # this breaks, too! "<b>No current page!<b>".html_safe end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-slim-0.0.2 | test/dummy/app/cells/song_cell.rb |