mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
Fix Hound errors
This commit is contained in:
parent
7cbe44d1f2
commit
fba646bfba
2 changed files with 7 additions and 7 deletions
|
@ -9,13 +9,13 @@ class UserMyModulesController < ApplicationController
|
|||
@user_my_modules = @my_module.user_my_modules
|
||||
|
||||
respond_to do |format|
|
||||
format.json {
|
||||
render :json => {
|
||||
:html => render_to_string({
|
||||
:partial => "index.html.erb"
|
||||
})
|
||||
format.json do
|
||||
render json: {
|
||||
html: render_to_string(
|
||||
partial: 'index.html.erb'
|
||||
)
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ Rails.application.routes.draw do
|
|||
# Show action is a popup (JSON) for individual module in full-zoom canvas,
|
||||
# as well as "module info" page for single module (HTML)
|
||||
resources :my_modules, path: '/modules', only: [:show, :update] do
|
||||
resources :my_module_tags, path: "/tags", only: [:create, :destroy]
|
||||
resources :my_module_tags, path: '/tags', only: [:create, :destroy]
|
||||
resources :user_my_modules, path: '/users',
|
||||
only: [:index, :create, :destroy]
|
||||
resources :my_module_comments,
|
||||
|
|
Loading…
Reference in a new issue