Exception: Fortitude::Errors::NoReturnValueFromTag
- Defined in:
- lib/fortitude/errors.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(method_name) ⇒ NoReturnValueFromTag
constructor
A new instance of NoReturnValueFromTag.
Constructor Details
#initialize(method_name) ⇒ NoReturnValueFromTag
Returns a new instance of NoReturnValueFromTag.
132 133 134 135 136 137 138 139 140 |
# File 'lib/fortitude/errors.rb', line 132 def initialize(method_name) super(%{You're trying to call a method, #{method_name.inspect}, on the return value of a Fortitude tag; tags don't return anything usable. (If you're migrating from Erector, this may be a place where you used Erector syntax for classes or IDs -- e.g., p.some_class, div.some_id!. Fortitude doesn't support these for important performance reasons; you simply need to convert these to "p :class => :some_class" or "div :id => :some_id".)}) @method_name = method_name end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
130 131 132 |
# File 'lib/fortitude/errors.rb', line 130 def method_name @method_name end |