Sha256: d5ac3da1088882a3da66d4362dbcb0def434aa2b2c9bacb070f7366d2795790f
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 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 def concatting content_tag :div do concat content_tag :p, "Concat!" concat "Whoo" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cells-slim-0.0.4 | test/dummy/app/cells/song_cell.rb |
cells-slim-0.0.3 | test/dummy/app/cells/song_cell.rb |