Module: Zena::Use::Rendering::ZafuMethods
- Defined in:
- lib/zena/use/rendering.rb
Overview
ControllerMethods
Instance Method Summary collapse
Instance Method Details
#r_headers ⇒ Object
294 295 296 297 298 299 300 301 302 303 304 |
# File 'lib/zena/use/rendering.rb', line 294 def r_headers headers = [] @params.each do |k, v| headers << "#{k.to_s.inspect} => #{RubyLess.translate_string(self, v)}" end if headers.empty? out "" else out "<% set_headers(#{headers.join(', ')}) %>" end end |
#r_not_found ⇒ Object
311 312 313 |
# File 'lib/zena/use/rendering.rb', line 311 def r_not_found out "<% raise ActiveRecord::RecordNotFound %>" end |
#r_style ⇒ Object
306 307 308 309 |
# File 'lib/zena/use/rendering.rb', line 306 def r_style @markup.tag = 'style' end |