Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails partial check if local exists

<section 
  id="view-dashboard" 
  class="<%= 'embedded' if local_assigns[:is_embedded] %>"
>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #partial #check #local #exists
ADD COMMENT
Topic
Name
2+8 =