Commit 10eb6d3c authored by Alfredo Sumaran's avatar Alfredo Sumaran

Respond with 'show' view. Tab content will be loaded dinamically

parent 48ae8ef1
......@@ -22,7 +22,7 @@ class UsersController < ApplicationController
load_groups
respond_to do |format|
format.html
format.html { render 'show' }
format.json do
render json: {
html: view_to_html_string("shared/groups/_list", groups: @groups)
......@@ -35,7 +35,7 @@ class UsersController < ApplicationController
load_projects
respond_to do |format|
format.html
format.html { render 'show' }
format.json do
render json: {
html: view_to_html_string("shared/projects/_list", projects: @projects, remote: true)
......@@ -48,7 +48,7 @@ class UsersController < ApplicationController
load_contributed_projects
respond_to do |format|
format.html
format.html { render 'show' }
format.json do
render json: {
html: view_to_html_string("shared/projects/_list", projects: @contributed_projects)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment