Has any one used FFCRM with Slim? What steps do I need to follow to use slim in the application.
- if (template = template_for_current_view)
| list
= render(template, :account => @account)
- else
/ default view
= styles_for :task, :contact, :opportunity, :lead, :invoice
= render 'accounts/title_bar', :account => @account
div#edit_account
= render "comments/new", :commentable => @account
= render :partial => "shared/timeline", :collection => @timeline
| Before hook
= hook(:show_account_bottom, self, {entity: @account}) do
| Inside hook
= render :partial => "tasks/tasks", :locals => {:object => @account}
= render partial: "contacts/contacts", :object => @account
= render "leads/leads", :object => @account
= render "opportunities/opportunities", :object => @account
- if @account.supplier?
= render "invoices/invoices", collection: @bills, category: 'bills'
= render "invoices/invoices", collection: @invoices, category: 'invoices'
= render "versions/versions", :object => @account
= load_select_popups_for(@account, :tasks, :contacts, :opportunities)