Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class App::Outils::FormationController < App::Outils::ApplicationController
# ...
def load_results
sujet = Metasujet.find(params[:cat].to_i)
@formation = Packvideomembre.where(:membre_id => current_membre, :metasujet_id => sujet).first
@formation = PackvideomembreDecorator.new(@formation, view_context)
render :partial => "app/outils/formation/index/details_wrapper", :locals => {:type => params[:type]}
end
# ...
end
<div class="v-box sujet-overview">
<%= @formation.sujet_infos %>
<%= @formation.progress %>
<%= @formation.action_links %>
<%= @formation.statistics %>
<%= @formation.membre_notes %>
<%= @formation.archive %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.