Method: Alchemy::Element#to_partial_path

Defined in:
app/models/alchemy/element.rb

#to_partial_pathObject

The element’s view partial is dependent from its name

Define elements

Elements are defined in the config/alchemy/elements.yml file

- name: article
  ingredients:
  ...

Override the view

Element partials live in app/views/alchemy/elements



274
275
276
# File 'app/models/alchemy/element.rb', line 274

def to_partial_path
  "alchemy/elements/#{name}"
end