Skip to content

Instantly share code, notes, and snippets.

@petrachi
Created April 15, 2014 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrachi/e09e22ea6dcd85be7f82 to your computer and use it in GitHub Desktop.
Save petrachi/e09e22ea6dcd85be7f82 to your computer and use it in GitHub Desktop.
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